Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] / Being Relative To The Domain? From: Frank M. Kromann (fmk <email protected>)
Date: 01/01/99

If you set the include_path in php3.ini to
 ../misc:../include or whatever include libraries you use you can do
require("siteinfo,inc"); and php wiil find the file relative to the current
site.

- Frank
----- Original Message -----
From: Carl Nasal <carlnasal <email protected>>
To: <php3 <email protected>>
Sent: 1. januar 1999 11:18
Subject: [PHP3] / Being Relative To The Domain?

>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.
>
>Thank in advance.
>
>
>Happy New Year,
>Carl Nasal
>
>--
>Carl Nasal
>CEO/Owner ZZWeb [Web Publishing]
>http://www.zzweb.com
>
>Personal E-Mail: carlnasal <email protected>
>Business E-Mail: webmaster <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>
>
>

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