Re: relative path and include\require
| From: | hennink at patrijs dot max dot nl | Date: | Sun, 29 Oct 2000 17:57:00 +0000 |
| Subject: | Re: relative path and include\require | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22559@lists.php.net to get a copy of this message | ||
Hi,
maybe you could try to create a configfile and within that file define
some
variabeles like :
define (pathname1 , "/usr/local/phpexample1");
define (pathname2 , "/usr/local/phpexample2");
Then when you are including a file you can use the following syntax.
include(pathname1 . "filename.php");
Now you only have the change your config(which have to be included in your
files which are going to use it).
with regards,
Tijmen
On Sun, 29 Oct 2000, moshe doron wrote:
> i want call one script from other script have different path.
> so i need command or variable that will setup the path so the called script
> includes wouldnt have to be updated. does some1 know can i do it?
>
> thanx.
> --
>
> moshe.
> mosdoron@netvision.net.il
> icq: 1542485
>
>
>
>
>
--
Customer: I'm running Windows '98
Tech: Yes.
Customer: My computer isn't working now.
Tech: Yes, you said that.