944,068 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1004
  • PHP RSS
Dec 3rd, 2007
0

PHP Includes Apache 1.3.33 and a Mac

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gym_shorts is offline Offline
9 posts
since Dec 2007
Dec 4th, 2007
0

Re: PHP Includes Apache 1.3.33 and a Mac

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Dec 4th, 2007
0

Re: PHP Includes Apache 1.3.33 and a Mac

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gym_shorts is offline Offline
9 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Problem with $_GET and JOIN
Next Thread in PHP Forum Timeline: syntax error, unexpected T_STRING





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC