For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > November 2005 > php and .css









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author php and .css
Jason Huang

2005-11-21, 3:56 am

Hi,

I have a php file and a css file, 3 web servers are all runnig Apache+PHP.
In Server1 and Server2, the MyFile.php using MyCss.css with no problems.
However in Server3, under the same folder stucture, the MyFile.php just
don't use anything from the MyCss.css file. I just don't know why.
Any help will be appreciated.

Jason


Kimmo Laine

2005-11-21, 7:55 am

"Jason Huang" <JasonHuang8888@hotmail.com> wrote in message
news:dlrmem$d3e$1@news.seed.net.tw...
> Hi,
>
> I have a php file and a css file, 3 web servers are all runnig Apache+PHP.
> In Server1 and Server2, the MyFile.php using MyCss.css with no problems.
> However in Server3, under the same folder stucture, the MyFile.php just
> don't use anything from the MyCss.css file. I just don't know why.
> Any help will be appreciated.


It sounds like the directory structure is not the same, even though you said
it is. If you could show an example of where it works, and where it does
not work, that would be great. Another possibility is that the servers are
on different OS's, which handle the slashes differently, like Servers 1 and
2 are Windows machines but the Server 3 is a Linux machine, and they handle
\ and / differently, something like that.

--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
antaatulla.sikanautaa@gmail.com.NOSPAM.invalid


sapo

2005-11-21, 7:55 am

Did you check the attributes of the files on server 3? try chmod 655
the MyCss.css, or maybe check if your code is case sensitive.

C.

2005-11-25, 7:55 am

bzzt....does not compute...out of cheese error

What do you mean "just don't use anything from the MyCss.css file" ?

Typically a PHP script is not the least bit interested in a css file -
although the output of the PHP file and the css file might be combined
at the browser. If that's what you're talking about then:
1) check the html and headers returned to the browser by the PHP script
2) try typing the URL of the css file in the browser.

HTH

C.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com