note 39605 added to function.fopen

From: Date: Wed, 04 Feb 2004 10:04:49 +0000
Subject: note 39605 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-64627@lists.php.net to get a copy of this message
The issue involving some sites requiring a valid user-agent string when using fopen can easily be resolved by setting the user_agent string in the PHP.INI file. If you do not have access to the PHP.INI file, then the use of ini_set('user_agent','Mozilla: (compatible; Windows XP)'); should also work. The actual agent string is up to you. If you want to identify to the sites that you are using PHP ... ini_set('user_agent','PHP'); would do. Regards, Richard Quadling. ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39605 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39605&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39605&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64627) next »