Re: Relative Url
| From: | Chris Shiflett | Date: | Fri, 02 Apr 2004 16:35:58 +0000 |
| Subject: | Re: Relative Url | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182145@lists.php.net to get a copy of this message | ||
--- Chris Thomas <cwthomas@connectmail.carleton.ca> wrote:
> I working on creating a poll script, and right now it consists of 3
> main files:
> poll.php
> pollFunctions.php
> poll.css
> These files reside in the /poll directory (for now)
[snip]
> So what im trying to figure out is the relative url of where the
> pollfunctions.php file resides.
$url = '/poll/pollfunctions.php';
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/