0

Why I get that result???

I write A PHP tag <?php echo"hello <Br>";?> At body tag of my html page when I open it in my browser excute it ";?> what's my problem

7th Jan 2017, 11:38 PM
Abdelrahman Rashidy
Abdelrahman Rashidy - avatar
7 Answers
+ 3
leave a space beween ;?> its good to have it like this: <?php echo "hello <br>"; ?>
7th Jan 2017, 11:40 PM
Nahuel
Nahuel - avatar
+ 3
Try print, <?php print(hello \n string); ?> The \n makes it on a new line.
8th Jan 2017, 12:58 AM
Alex
Alex - avatar
+ 1
Your screenshot show that you have two files in your html folder: 'index.html' and 'inde.php' ( without the 'x' ^^ ): maybe you do access to your file automatically, by just typing the url of your website / folder, and a file named 'index.*' is searched, but only the html is founded? Verif also that the priority of the web server is for php extention, instead html ;)
8th Jan 2017, 3:38 AM
visph
visph - avatar
0
I make it like u I get the same Result
7th Jan 2017, 11:43 PM
Abdelrahman Rashidy
Abdelrahman Rashidy - avatar
0
It doesn't worked
8th Jan 2017, 1:33 AM
Abdelrahman Rashidy
Abdelrahman Rashidy - avatar
0
The tag should be <br />, not </br>.
8th Jan 2017, 3:37 AM
Heroes Killer
Heroes Killer - avatar