+ 1

It doesn't show my tag <?php from brackets, what else I need to code in order to work this simple proces

<html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html>

18th Jul 2017, 6:56 PM
Angel Mauricio Antolin Rivas
Angel Mauricio Antolin Rivas - avatar
5 Respostas
+ 4
You need brackets around what you are trying to echo (since echo is a PHP function) <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo( "Hello World!"); ?> </body> </html>
18th Jul 2017, 7:10 PM
S C
+ 2
I wasn't ececuting my page feim the localhost, I did it and it worked without problem, thank everybody that helped me
22nd Jul 2017, 2:17 PM
Angel Mauricio Antolin Rivas
Angel Mauricio Antolin Rivas - avatar
+ 1
it should be run on a php server! With a php tag
18th Jul 2017, 8:21 PM
Limitless
Limitless - avatar
0
Did you type it in the WEB or PHP Playgrounds?
18th Jul 2017, 7:06 PM
Limitless
Limitless - avatar
0
I save it in fileTest.html
18th Jul 2017, 7:46 PM
Angel Mauricio Antolin Rivas
Angel Mauricio Antolin Rivas - avatar