Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Relative URLs are interpreted and calculated by the browser, not by the server. So you don't need to consider the actual disk layout of your directories—just look at the URL. If you refer to an image at "../my_imgs/pic.jpg" from a page that was fetched at "/cgi-bin/somescript", the browser subtracts /cgi-bin, and requests "/my_imgs/pic.jpg".
It's all about the browser. -- Randal L. Schwartz, Perl hacker The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. In reply to Re: (OT) cgi: relative v. absolute paths, Apache
by merlyn
|
|