PHP Includes Apache 1.3.33 and a Mac

Reply

Join Date: Dec 2007
Posts: 9
Reputation: gym_shorts is an unknown quantity at this point 
Solved Threads: 0
gym_shorts gym_shorts is offline Offline
Newbie Poster

PHP Includes Apache 1.3.33 and a Mac

 
0
  #1
Dec 3rd, 2007
Hello all,

I have a problem and after searching for hours was hoping someone would have some information that would greatly help me out.

I am developing a website locally on my development machine, (Mac OS X Tiger 10.4.11, Apache 1.3.33, and PHP 5.2.2). The site is based on a CSS layout, and I am using PHP Includes in a template to pull in the following files, header.php, content.php, and footer.php. After fighting for hours with it locally on my development machine i decided for giggles to upload it to my production server and see if it worked there. My production server is a Windows 2003 box with php 5.2.2 and IIS 6.0, and it works on the production server with no issues.

My problem is that on the Mac when I go to view the files in a browser using localhost the content of the page displays, but it does not display the CSS attributes or the include files. I can see the nav but it is a unordered list rather than being controlled by the CSS.

I have verified that Apache and PHP are working on the Mac as I have developed other web apps on the same machine and they work flawlessly, even ones that I am using MySQL as the DB. Everything appears to be working correctly on the Mac but this site and the php includes. To me it appears to be an Apache issue, due to it does work correctly on the Win2k3 box running IIS and PHP but I really don't have a clue at this point.

Sorry for the lengthy post.

Best Regards, Gym
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,056
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: PHP Includes Apache 1.3.33 and a Mac

 
0
  #2
Dec 4th, 2007
Can you access the CSS file if you type the URL directly into your mac's web browser? If you can, and the path that you have specified in the <link rel="stylesheet"... line is correct, then the issue is related to your Mac's browser application.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 9
Reputation: gym_shorts is an unknown quantity at this point 
Solved Threads: 0
gym_shorts gym_shorts is offline Offline
Newbie Poster

Re: PHP Includes Apache 1.3.33 and a Mac

 
0
  #3
Dec 4th, 2007
Thanks for the clue, as it turned out I could not access the CSS file. When I tried to browse to it I would get a 403 Forbidden error. Last night I thought it could possibly be a file permissions issue, but due to working on a small screen and having all the options expanded I did not see the "Apply to all" button located at the bottom of the screen. Sometimes you just need to walk away, clear the noggin and try again later. LOL I feel like such a schmooo!

Great site by the way, and thanks for the assistance.

Gym
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC