Re: File inclusion from www.a.com to www.b.com

From: Date: Tue, 02 Apr 2002 12:57:58 +0000
Subject: Re: File inclusion from www.a.com to www.b.com
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-82020@lists.php.net to get a copy of this message
Normally this is a topic for php-general@lists.php.net but i think it 'could' be a good feature to have include/require work with streams. Then the questioned code would work. The quick solution is to open the file is: eval(join('', file('http://www.a.com/includefile'))); marcus At 01:34 01.04.2002, you wrote:
I'm in trouble with include procedure. I have a file on host http://www.a.com that must be included by the file on the host http://www.b.com The code of the file to be included is as follows: included.php on http://www.a.com <?
    $vett[0] = "zero";
    $vett[1] = "one";
    $vett[2] = "two";
    return $vett;
?> The code of the file which must include first file is as follows: master.php on http://www.b.com <?
    $value = include('http://www.a.com/included.php');
    echo $value;
    echo $value[0];
    echo $value[1];
    echo $value[2];
?> The expected output would be: "Arrayzeroonetwo" but the include procedure doesn't work correctly working on different host. Can anyone help me please?? I'm in a very big trouble. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#82020) next »