note 39605 deleted from function.fopen by cmb

From: Date: Sun, 09 Feb 2020 08:07:19 +0000
Subject: note 39605 deleted from function.fopen by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214031@lists.php.net to get a copy of this message
Note Submitter: richard dot quadling at carval dot co dot uk ---- 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.

« previous php.notes (#214031) next »