URL in php script

How can I open an URL in a phpscipt?
Floor
Floor [ Mi, 21 November 2007 01:47 ] [ ID #1875959 ]

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
nc [ Mi, 21 November 2007 01:54 ] [ ID #1875960 ]

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
Floor [ Fr, 23 November 2007 01:26 ] [ ID #1877371 ]
PHP » alt.php » URL in php script

Vorheriges Thema: Removing multiple directories
Nächstes Thema: TextWrap php->pdf problem