in reply to (OT) cgi: relative v. absolute paths, Apache
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: (OT) cgi: relative v. absolute paths, Apache
by MidLifeXis (Monsignor) on Nov 19, 2009 at 17:11 UTC | |
by 7stud (Deacon) on Nov 19, 2009 at 18:59 UTC | |
by 7stud (Deacon) on Nov 19, 2009 at 19:33 UTC | |
by ikegami (Patriarch) on Nov 19, 2009 at 19:55 UTC | |
by 7stud (Deacon) on Nov 20, 2009 at 16:23 UTC | |
by MidLifeXis (Monsignor) on Nov 20, 2009 at 17:46 UTC |
In Section
Seekers of Perl Wisdom