php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #16632 Introductory Tutorial tut.php uses $HTTP_USER_AGENT
Submitted: 2002-04-16 07:17 UTC Modified: 2002-05-24 15:15 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: heyjohnlim at yahoo dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.0 OS:
Private report: No CVE-ID: None
 [2002-04-16 07:17 UTC] heyjohnlim at yahoo dot com
Shouldn't we change the default tutorial at the url below so that it works with both PHP 4.0.x and 4.1.x?

http://www.php.net/tut.php

Bye, John

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-16 08:56 UTC] goba@php.net
The plan was to integrate the intro into the manual, and extend it in some basic areas....
 [2002-04-17 16:53 UTC] philip@php.net
and just a few comments:

a) $HTTP_USER_AGENT may work in any php version, it's just that as of 4.2.0 register_globals directive defaults to off, so it's not created automagically that way.
b) One can always extract() SERVER vars in such cases, something like:

if (!ini_get('register_globals')) {
  extract($HTTP_SERVER_VARS);
}
c) Yes it's agreed, the docs will and are being updated to not assume the above or register_globals = on.
 [2002-05-24 15:15 UTC] derick@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 15:00:02 2025 UTC