URL in php script
How can I open an URL in a phpscipt?
Floor
Re: URL in php script
On Nov 20, 4:47 pm, "Floor" <Fl... [at] yahooh.co.not> wrote:
>
> How can I open an URL in a phpscipt?
$data = file_get_contents('http://www.myURL.com/');
However, this must be allowed by your system's configuration (the
allow_url_fopen directive in php.ini must be set to On).
Cheers,
NC
Re: URL in php script
NC:
> $data = file_get_contents('http://www.myURL.com/');
>
> However, this must be allowed by your system's configuration (the
> allow_url_fopen directive in php.ini must be set to On).
Thanks, I ran that. But is doesn't work. I want to link to a script that
displays a random page.
I added a 'echo data$;' but that didn't work unfortunately...
Floor