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
7 Answers
+ 3
leave a space beween ;?>
its good to have it like this:
<?php
echo "hello <br>";
?>
+ 3
Try print, <?php print(hello \n string); ?> The \n makes it on a new line.
+ 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 ;)
0
I make it like u I get the same Result
0
It doesn't worked
0
The tag should be <br />, not </br>.