Configuration Variable user_agent
| From: | Bernhard Kraft | Date: | Fri, 02 Apr 2004 08:21:44 +0000 |
| Subject: | Configuration Variable user_agent | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182105@lists.php.net to get a copy of this message | ||
Hallo !
I run PHP 4.1.2.
I want to set the user_agent which gets sent
along when fetching file via the fopen(...) call.
Normally this is "PHP/VERISON" in my case "PHP/4.1.2"
I want to set a different user_agent.
I tried to set the variable "user_agent" in the
php.ini file. But the variable doesn't show up when
I view a phpinfo(...) page.
I also tried to set "user_agent" using the function
ini_set(varname, value) during runtime but this
didn't work either ....
Was this directive removed ? I didn't find anything
in the archives.
Any suggestions ?
greets,
Bernhard
--
-----------------------------------------
Bernhard Kraft
<kraftb@mokka.at>
MOKKA MEDIENAGENTUR GMBH
Mariahilferstrasse 170
1150 Wien
T: 01 895 33 33 50
M: 0676 560 14 14
F: 01 895 33 33 20
www.mokka.at
-----------------------------------------
--
-----------------------------------------
Bernhard Kraft
<kraftb@mokka.at>
MOKKA MEDIENAGENTUR GMBH
Mariahilferstrasse 170
1150 Wien
T: 01 895 33 33 50
M: 0676 560 14 14
F: 01 895 33 33 20
www.mokka.at
-----------------------------------------