Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

RE: [PHP3] / Being Relative To The Domain? From: David Norris (kg9ae <email protected>)
Date: 01/01/99

> <? 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.

Here is my include path:
"./include:../include:/www/share/include"

/domain.com/files/test.php3
would look in:
/domain.com/files/include
then in:
/domain.com/include
then in:
/www/share/include

,David Norris

World Wide Web - http://www.geocities.com/CapeCanaveral/Lab/1652/
Page via mail - 412039 <email protected>
ICQ Universal Internet Number - 412039
E-Mail - kg9ae <email protected>

--
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>