p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 (http://p2p.wrox.com/forumdisplay.php?f=476)
-   -   first program problem, page 23 (http://p2p.wrox.com/showthread.php?t=75538)

dennis lee August 3rd, 2009 02:06 PM

first program problem, page 23
 
I got apache, php, and mysql loaded and tested as per the book and thought i was good to go. Then I entered firstprog.php and saved it as instructed on page 23 when I went to localhost/firstprog.php with my browser, the page cannot be found error 404 appeared. I changed my path to include the directory i created for the programs which is c:\php\phpprogs. I also tried to put the entire path following localhost in the browser address. I restarted the machine. all to no avail. I looked at the errata and did not see any issues there either. any suggestions?. the it works screen comes up fine when i just use localhost alone but am stuck. thanks dennis lee
the book i am using is php6, apache, mysql web development isbn 978-0-470-39114-3

Fat Samurai August 23rd, 2009 08:26 PM

Localhost refers back to this location in your Apache server.

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs

if you put your programs inside htdocs folder, then you can use /localhost/yourfilename.php

Good luck


All times are GMT -4. The time now is 11:14 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.