A little trouble with php and html

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 1
Joined: Sat Feb 10, 2018 6:06 pm

Sun Feb 11, 2018 9:50 am

Hi, everybody

i just start programming php and html, i have a little trouble, and i don't know how to solve it; i'm programming on a debian 9 system, it has apache2, php 7, and these are the input and output, thank you.

My first html

$var1 = 5;
echo "$var1<br>";



My first html "; ?>

User avatar
New php-forum User
New php-forum User
Posts: 55
Joined: Mon Oct 16, 2017 1:06 pm

Sun Feb 11, 2018 12:44 pm

The file extension needs to be .php, not .htm or .html
The XY Problem
The XY problem is asking about your attempted solution (X) rather than your actual problem (Y). This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.

Post Reply