Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PATHS Problem

0 views
Skip to first unread message

Jim Rendant

unread,
Aug 8, 2003, 1:55:07 PM8/8/03
to
I have created a perl script that lives in the cgi-bin directory. It builds
web pages on the fly but it doesn't find the CSS style sheet located in the
.../html/ directory. I have used the http://ipaddress/html/ path name and it
works. When I transfer this to another server I will have to reconfigure all
the absolute path names for that server.

I AM SURE I AM MISSING SOMETHING HERE!

There has to be a eaiser way for a script located in the cgi-bin directory
to use a CSS files of other files in other directories.


Please help me.

Thanks
Jim Rendant

--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html

Gunnar Hjalmarsson

unread,
Aug 8, 2003, 4:10:04 PM8/8/03
to
Jim Rendant wrote:
> I have created a perl script that lives in the cgi-bin directory.
> It builds web pages on the fly but it doesn't find the CSS style
> sheet located in the .../html/ directory.

"It doesn't find?" Is that another way to say that you didn't state
the correct URL to the style sheet?

> I have used the http://ipaddress/html/ path name

Something starting with 'http://' is not a "path name" - it's a URL.

> and it works.

Does it work? So, what's the problem?

> When I transfer this to another server I will have to reconfigure all
> the absolute path names for that server.

Please forget about "path names". Style sheets are accessed via URLs!

Using _relative_ or _absolute_ URLs (not paths) may work without a
need to modify the script. Something like:

<link rel="StyleSheet" href="/yourstylesheet.css" type="text/css" />

> I AM SURE I AM MISSING SOMETHING HERE!

You seem to be mixing up paths and URLs. Use Google or something to
learn about the difference. ;-)

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

0 new messages