Re: Including a file using php //

From: Date: Tue, 15 Jan 2002 09:40:53 +0000
Subject: Re: Including a file using php //
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80534@lists.php.net to get a copy of this message
So u mean like this? <?php include('http://192.168.129.103/noc/chikkaps.txt'); ?> Only?, Im not good with this, can you give me some samples? thanks, louie... ----- Original Message ----- From: <bvr@xs4all.nl> To: <php-general@lists.php.net>; "louie miranda" <louie@chikka.com> Sent: Tuesday, January 15, 2002 5:41 PM Subject: Re: [PHP] Including a file using php // > > 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 > > > > > > > > > -- > 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 (#80534) next »