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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php