Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 1st, 2004, 04:19 PM
Registered User
 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default PhpTest.php launches "File Download"

Apache seems to be running ok but when I enter http:\\localhost\phptest.php I get a "File Download" dialog box....
I addtyped/loadmoded all chapter 1 items and renamed .ini-dist to .ini...also all .dll's seem to be ok....
\\localhost produces the index.html ok.
Apache stops and restarts wth no errors...any suggestions???????

 
Old May 1st, 2004, 04:35 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

First, you're using backslashes in your URL, you should be using forward slashes. The browser will usually correct this, but FYI.

In httpd.conf did you add the .php association?
Code:
    AddType application/x-httpd-php .php
Add lines like this to tell php to parse your files. Be sure to restart Apache after any modifications to httpd.conf. Although I don't know why it would be giving you a download dialouge, if it doesn't recognize php it should just be exposing the source to you. What does phptest.php have in it? I assume a call to phpinfo() ?

I don't have the book, I have no desire to buy it and no time (or desire FTM) to download and sift through the code and errata. If this suggestion does nothing for you, walk us through what you did step-by-step.



Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old May 1st, 2004, 05:07 PM
Registered User
 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Spelling Httpd sure does help...thanks...[duh!!!]






Similar Threads
Thread Thread Starter Forum Replies Last Post
File Download. rupen ASP.NET 1.x and 2.0 Application Design 4 February 23rd, 2008 08:43 AM
Download File Muhammad Zeeshan ASP.NET 2.0 Professional 0 October 24th, 2007 12:51 AM
ASP3wiki Launches at Wrox jminatel Classic ASP Basics 1 October 9th, 2007 11:21 AM
Smaller download/single download file available jminatel BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 21st, 2005 11:10 AM
No download Pro PHP web Services Geneg Wrox Book Feedback 1 December 2nd, 2003 03:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.