Re: [PHP] Changing User Agent for fopen

From: Gerard Samuel (php-general_at_trini0.org)
Date: 12/04/03


To: php-general@lists.php.net
Date: Thu, 4 Dec 2003 10:54:30 -0500

On Thursday 04 December 2003 10:36 am, Gohaku wrote:
> Hi everybody,
> There are some pages I would like to extract links from but I can't
> access the page using the following:
> ini_set('php.user_agent', 'Mozilla/5.0');

This should work ->
header('User-Agent: Mozilla/5.0');