Since the stylesheet was in the same directory as the page calling the cgi script
Irrelevant. (I was going to ask "Is the style sheet in the same directory as the cgi script?", but that's irrelevant too.)
If the HTML returned by the script at
http://www.example.com/app/script.cgi
refers to the style sheet at
style.css
then the browser will attempt to locate the style sheet at
http://www.example.com/app/style.css
Is that where the style sheet is located?
| [reply] [d/l] [select] |
Well, I beg to differ ...It all depends how the webserver is configured. You can easily have all your "cgi" scripts be served out of a "cgi-bin" directory and all your "css" files out of a totally different directory without the URL showing any different path.
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
| [reply] |
How is that differing? That's exactly what I said. It all depends how the webserver is configured to handle individual urls, so it's irrelevant in which directory the files are located.
| [reply] |
"Is that where the style sheet is located?"
yep. I actually have three copies of it on the server now (one in cgi-bin, one in "html", and one in their common parent)
| [reply] |
sorry all, it's because the server won't process it in cgi-bin, ie.
"../style.css" and "../html/style.css" are okay where "style.css" is not...
| [reply] |
| [reply] |
... Or paste here the header section of the html to get an idea of what's really happening (to see if the problem is on the html or the server). | [reply] |