Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 25th, 2004, 06:23 AM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default localhost problems

Hi All,
I installed AMP and got everything working. The problem is that I downloaded Zend Developmet studio. While it has some how change the path that i used for where the php files live..ie /usr/local/apache2/test.
When I open a file in the browser it is displayed as text/
I typed http://localhost and got the "if this shows up its working" message from the iondex.html file.

I'm running on RH Linux 7.3

TIA

Sean

Reply With Quote
  #2 (permalink)  
Old October 25th, 2004, 10:26 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Fairfield, Iowa, USA.
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would like to help you. Could you please be more specific? Mainly what your question is.


Christian
Reply With Quote
  #3 (permalink)  
Old October 26th, 2004, 03:56 PM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Christian
I'm working through the book and i'm up to chapter 4 page 123 - 127 if i run the table2.php file it displays the php file correctly, however when I click the link on the page to display movie details, All the text from the movie_details.php file is displayed what i should see is the Details page on page 127 of the book.

if I type the following in netscape web browser "http://localhost/table2.php"
i get a dialog asking "table2.php is of type application/x-httpd-php, and netscape does not know how to handle this file type, this file is located at "http://localhost/" what should netscape do with this file?
There are two options "Open With" or "Save to"

So i'm at a loss of whats actually going on.

Sean

Reply With Quote
  #4 (permalink)  
Old October 26th, 2004, 07:27 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I don't know what's going on, but a temporary fix may be to add this line to the top of the file:

header("Content-Type: text/html");

HTH!

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
localhost ongmymap ASP.NET 3.5 Basics 5 November 8th, 2008 02:09 PM
Smtp Problems on a localhost teddyk ASP.NET 2.0 Basics 1 November 4th, 2008 11:22 AM
do not want to use localhost p2ptolu Classic ASP Databases 1 September 15th, 2005 06:03 PM
Problems calling ActiveX via localhost Kristinn ASP.NET 1.0 and 1.1 Basics 1 March 30th, 2005 05:36 PM
Localhost Yee Dreamweaver (all versions) 6 October 21st, 2004 09:21 AM



All times are GMT -4. The time now is 08:43 PM.


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