Re: Including a file using php //

From: Date: Tue, 15 Jan 2002 09:41:12 +0000
Subject: Re: Including a file using php //
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80533@lists.php.net to get a copy of this message
I don't think you can return a value like this. You should either define a function within your include which could be called from your page or set a variable within your include that contains the result, this variable will be available as if the include() statement was replace by the code in your include. bvr. On Tue, 15 Jan 2002 17:32:14 +0800, louie miranda wrote: >Hi, I was trying to include a url file on another server but could't make >this to work. >It displays nothing actually.. > > ><?php >$retvalue = >include('http://192.168.129.103/noc/chikkaps.txt'); >echo $retvalue; >?> > > > >Can someone help me please? > > >thanks, >louie... > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#80533) next »