Author Topic: phpinfo.php works, but simple script doesn't  (Read 3021 times)

mkill

  • New Member
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
phpinfo.php works, but simple script doesn't
« on: May 04, 2007, 12:06:58 AM »
I recently loaded php, apache and MySql on my home computer so I can use it as a test server as I teach myself php. The problem I am having is that although I tested my php installation  (<? php phpinfo(); ?> and it seems to be working right, when I put in a simple php script <?php echo "Hello Web!"; ?> I get an "Object not found" error saying that the file can't be found on my server.

Both files are in the same directory, the first is called phpinfo.php, the second test.php. I've looked everywhere trying to figure this out. Any thoughts.

Thanks
Mkill

Zyppora

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 1401
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #1 on: May 04, 2007, 03:38:25 AM »
Never heard of an error saying 'Object Not Found'. Could you please paste the exact error message?
HAVE YOU TRIED DEBUGGING? Example code in this reply deliberately contains BUGS. PHP forum for beginners.

djpic

  • New Member
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
    • http://www.djpic.net
Re: phpinfo.php works, but simple script doesn't
« Reply #2 on: April 22, 2008, 09:19:42 PM »
Double check the permissions on the file.  Should be 755.