John B Posted April 9, 2019 Share Posted April 9, 2019 Hi Larry Ullman, I'm having some trouble on pg 4 step 6 where I run the first.php file. Whenever I run the file using the link http://localhost/first.php I end up getting an error message saying Object not found followed by error 404. Do you have any advice on what I should do. I also stored my first.php file in xampp/htdocs/ch01. Link to comment Share on other sites More sharing options...
HartleySan Posted April 9, 2019 Share Posted April 9, 2019 A 404 error is a page-not-found error, which means that your server cannot find the script in question. In other words, the URL to the file is probably incorrect. Within the xampp folder, where is the script stored, and is your Apache server running? Thanks. Link to comment Share on other sites More sharing options...
John B Posted April 9, 2019 Author Share Posted April 9, 2019 My first.php file is stored in a folder called ch01 the path to it is xampp/htdocs/ch01 and I had Apache running when I tried entering the http://localhost/first.php for the script but I still get the 404 error Link to comment Share on other sites More sharing options...
Larry Posted April 9, 2019 Share Posted April 9, 2019 If you put the file in a folder named "ch01" then the URL would be http://localhost/ch01/first.php. Link to comment Share on other sites More sharing options...
John B Posted April 9, 2019 Author Share Posted April 9, 2019 I got the link to work and the text to appear but when the site opens I get the PHP Version 7.1.8 screen that lists the system, build date, etc when all I want is the text "this is the standard html" like in the figure A example on pg 4 Link to comment Share on other sites More sharing options...
John B Posted April 9, 2019 Author Share Posted April 9, 2019 Never mind I got the problem solved, I had to remove the <?php, ?> tags and now it looks exactly like figure A. Thanks for the help HartleySan and Larry Ullamn. Link to comment Share on other sites More sharing options...
Recommended Posts