php3-list | 199901
Date: 01/01/99
- Next message: Rasmus Lerdorf: "Re: [PHP3] ereg_replace and numbers"
- Previous message: Kristian Koehntopp: "[PHP3] Re: [PHPLIB] RE: [PHP3] Something off topic"
- In reply to: Carl Nasal: "[PHP3] / Being Relative To The Domain?"
- Next in thread: David Norris: "RE: [PHP3] / Being Relative To The Domain?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Jan 01, 1999 at 05:18:43AM -0500, Carl Nasal wrote:
> I've recently started using PHP within the last week and have been annoyed
> but only one thing (and that isn't even that terrible). When including or
> requiring files I notice that when you put the absolute location, it is
> the absolute location of the file on the system, not under the domain. Is
> there any way to make the absolute location look at the domain instead of
> the system?
>
> For example:
> <? require('/misc/siteinfo.inc'); ?>
> on the domain "domain.com" would look for the file at
> domain.com/misc/siteinfo.inc.
>
> The main reason I ask this is because I usually write sites at one domain
> in one directory (i.e. ~/beta.domain.com) and move it to the real domain
> later (i.e. ~/domain.com) and would prefer not to go through all of my
> files and change the link.
Use the DOCUMENT_ROOT environment variable.
Greetz, Peter.
-- <squeezer> AND I AM GONNA KILL MIKE | Peter van Dijk <squeezer> hardbeat, als je nog nuchter bent: | peter <email protected> <squeezer> <email protected> = localtime(time); | realtime security d00d <squeezer> $date[5] += 2000 if ($date[5] < 37); | <squeezer> $date[5] += 1900 if ($date[5] < 99); | -x- I love Rhona -x--- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev <email protected>
- Next message: Rasmus Lerdorf: "Re: [PHP3] ereg_replace and numbers"
- Previous message: Kristian Koehntopp: "[PHP3] Re: [PHPLIB] RE: [PHP3] Something off topic"
- In reply to: Carl Nasal: "[PHP3] / Being Relative To The Domain?"
- Next in thread: David Norris: "RE: [PHP3] / Being Relative To The Domain?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

