Re: Get Parameters in Includes?

From: Date: Thu, 10 Jan 2008 03:39:32 +0000
Subject: Re: Get Parameters in Includes?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-267002@lists.php.net to get a copy of this message
On Wed, January 9, 2008 8:38 pm, Liam wrote: > How do I use a get parameter in a include? > > e.g. > <?php include('x.cgi?want=ssilinks') ?> > > I can't modify the cgi file though, and HTML includes don't work on my > server. > > Thanks in advance. In order to fire the CGI and have it processed, you would need to do: $html = file_get_contents("http://.../x.cgi?want=ssilinks"); This will require php.ini to have allow_url_fopen set to "on" which has some serious security considerations to ponder before you go changing it... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#267002) next »