RE: [PHP] site path
| From: | Jon Haworth | Date: | Wed, 09 Oct 2002 16:59:00 +0000 |
| Subject: | RE: [PHP] site path | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-119448@lists.php.net to get a copy of this message | ||
Hi Wilmar,
> I'm just looking for some advise: I've got a variable
> which I use to store my site's main path. Is it better
> to have it like this:
>
> $site_path = "/my/web/path/"
>
> or like this:
>
> $site_path = "http://my_url.com/"
Depends what you're using it for :-)
You could:
- Use the first if you need it for filesystem access
- Use the second if you need it for URLs
- Use two if you need both
- Forget these and use PHP's predefined variables for this info
Cheers
Jon