John B 0 Posted April 9, 2019 Report 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. Quote Link to post Share on other sites
HartleySan 826 Posted April 9, 2019 Report 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. Quote Link to post Share on other sites
John B 0 Posted April 9, 2019 Author Report 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 Quote Link to post Share on other sites
Larry 429 Posted April 9, 2019 Report 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. Quote Link to post Share on other sites
John B 0 Posted April 9, 2019 Author Report 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 Quote Link to post Share on other sites
John B 0 Posted April 9, 2019 Author Report 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.