URL in php script

URL in php script

am 21.11.2007 01:47:34 von Floor

How can I open an URL in a phpscipt?
Floor

Re: URL in php script

am 21.11.2007 01:54:03 von nc

On Nov 20, 4:47 pm, "Floor" 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

am 23.11.2007 01:26:23 von Floor

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