Login | Register | FAQ
Anonymous

Your first PHP page

+ Post a reply

3 posts Page 1 of 1


Your first PHP page

by quizhead » Sat Feb 07, 2015 10:59 am

my browser prints out :
Hello World!";?>
I can also see the PHP commands when I look in the source code.
I saved the file in the root as Page.php
What could be the problem?
User avatar

quizhead

  • Posts: 1
  • Joined: Sat Feb 07, 2015 10:51 am

Re: Your first PHP page

by nanoverso » Sun Feb 08, 2015 1:14 am

Make sure you are requesting the file from a PHP enabled webserver and not your local filesystem.
User avatar

nanoverso

  • Posts: 252
  • Joined: Sat May 10, 2014 12:08 am
  • Location: Brazil
--
Mario Blog (Portuguese): https://jogosdomariosuperbros.blogspot.com

Re: Your first PHP page

by XainPro » Sun Feb 08, 2015 8:02 pm

you are opening it directly as file open it like web file
like open your browser and in url write

http://localhost/

and check again

for detail please check

lesson 3 carefully
http://html.net/tutorials/php/lesson3.php
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1