Re: Get Parameters in Includes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux