0

Okk so i tried this code but it shows a blank page

<html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> Is it because its server side But the eg work in sololearn Thanks

28th Aug 2017, 8:20 PM
SHUBHAM PANCHAL
SHUBHAM PANCHAL - avatar
3 Respuestas
+ 2
You have to try over a server, online or yours at home, but need to run an Apache or other server software configured. If is in home, normally you can access to configuration via http://localhost, if remote, simply upload your file to destination folder via ftp and run through your web browser. It have to work well, it seems. But it will not run locally if you don't have a web server installed in your computer. Tell us when you try.
28th Aug 2017, 9:28 PM
Aarón Fortuño Ramos
Aarón Fortuño Ramos - avatar
0
I am doing it in iis but Instead of outputing only hello world! It displays echo "hello world"
29th Aug 2017, 2:41 AM
SHUBHAM PANCHAL
SHUBHAM PANCHAL - avatar
0
I first only put the php And a blank page appeared I added whole html from the comment And it started to displays echo "hello world"
29th Aug 2017, 2:47 AM
SHUBHAM PANCHAL
SHUBHAM PANCHAL - avatar