|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Permission problems with css
Hi,
I have a script which is calling a CSS in the folder under the CGI-BIN. Sometimes the script uses the CSS, other times it comes up with error 13 in the log (doesn't affect the page loading, just makes it look bad), the error being that Access is Denied to the CSS. The script is composed of about 14 subs, and only on some of them fail to use the CSS. Anyone had anything like this before? |
|
#2
|
|||
|
|||
|
Generally if I have a CGI script that needs to make use of an external CSS file, I don't store the CSS in the CGI-BIN.
You would normally store an external file in any publicly viewable directory on your server, for example, the "public_html" folder. Then, in your CGI import the CSS using a global URL such as: http://www.somedomain.com/someCSS.css You therefore won't get any access issues, and if you edit that file, you won't need to duplicate it for the CGI-BIN. Regards, Mike Mackay. |
|
#3
|
|||
|
|||
|
I just realised
how misleading my post was in that respect.
The CSS is not in the CGI-BIN. Interesting idea about the absolute ref. Since earlier I've found that using the back button makes the CSS work. I.e. Load the page, it doesn't work, call one of the subs, it doesn't work, use back, it works, call a sub it doesn't work. Etc. Very strange. Will give the absolute ref a try. |
|
#4
|
|||
|
|||
|
Still no joy
Anyone got any idea at all? Everything to do with permissions and locations has been checked, on folders and files.
Absolute refs to the style sheet have been tried. I am completely lost. Other scripts access the style sheet fine. Is it possible that it's something to do with headers? |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Permission problems with css |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|