Re: help with include

From: Date: Mon, 07 Aug 2000 19:21:07 +0000
Subject: Re: help with include
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-10522@lists.php.net to get a copy of this message
OK....I was completely off on this...sorry. I read the post too hastily. include() can get via HTTP but cannot have variables attached to it (ie: include("file.php3?blah=blah blah")) I am not sure what is happening really....I am just an amateur and should refrain from posting completely. GOD I feel like an idiot! _________________________________________ r a n d y || s e s s e r http://www.troikawebdesign.com > From: rsesser@troikawebdesign.com (R a n d y S e s s e r) > Newsgroups: php.general > Date: 7 Aug 2000 11:32:50 -0700 > Subject: Re: [PHP] help with include > > That's because include() doesn't get via HTTP...you should first use > something like fopen(): > $file = > fopen("http://www.domain.com/stuff/news.shtml", > "r"); > include("$file"); > > Read the Manual...more specifically: > http://www.php.net/manual/features.remote-files.php > http://www.php.net/manual/function.include.php > > I hope I am right on this... > _________________________________________ > r a n d y || s e s s e r > http://www.troikawebdesign.com > >> From: sysadmin@up-link.net ("Susan G. Long") >> Newsgroups: php.general >> Date: 7 Aug 2000 11:02:05 -0700 >> Subject: [PHP] help with include >> >>> I'm really green with PHP but I thought I would see if someone >>> can help me with this problem. I have this include statment that >>> works if I put it on a temporary page: >>> >>> I have a >>> script that I want to pull into a section of a page. If I put >>> this statement >>> on a blank page called temp.php3 it works fine: >>> >>> http://www.domain.com/temp.php3 >>> >>> <?php >>> include ("x£ýÉÖ� >>> Õþý~€sLÕhttp://www.domain.com/stuff/news.shtml"); >>> ?> >>> >>> If I put this in my phpslash page under one of the blocks from >>> the admin interface, it shows the code in the source instead of >>> pulling the page in...help??? >> >> >> --------------------------------- >> Susan G. Long >> Corporate Project Manager >> sysadmin@up-link.net >> --------------------------------- >> Extra! Extra! Read All About it everyday at >> http://www.up-link.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 (#10522) next »