phpinfo.php works, but simple script doesn't

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

Never heard of an error saying ‘Object Not Found’. Could you please paste the exact error message?

Double check the permissions on the file. Should be 755.

Sponsor our Newsletter | Privacy Policy | Terms of Service