CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 28th, 2004, 03:22 AM
williwontiuk williwontiuk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: England - Ipswich
Posts: 215 williwontiuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 12 m 44 sec
Reputation Power: 5
Send a message via MSN to williwontiuk
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?

Reply With Quote
  #2  
Old April 28th, 2004, 05:11 AM
Ultrafusion Ultrafusion is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: England, UK
Posts: 83 Ultrafusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 42 m 2 sec
Reputation Power: 7
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.

Reply With Quote
  #3  
Old April 28th, 2004, 05:35 AM
williwontiuk williwontiuk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: England - Ipswich
Posts: 215 williwontiuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 12 m 44 sec
Reputation Power: 5
Send a message via MSN to williwontiuk
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.

Reply With Quote
  #4  
Old April 30th, 2004, 05:39 AM
williwontiuk williwontiuk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: England - Ipswich
Posts: 215 williwontiuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 12 m 44 sec
Reputation Power: 5
Send a message via MSN to williwontiuk
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Permission problems with css


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT