php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #6024 the function getenv() is not working properly
Submitted: 2000-08-08 10:34 UTC Modified: 2000-09-11 15:23 UTC
From: stefand at rila dot bg Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.0 OS: Windows NT
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stefand at rila dot bg
New email:
PHP Version: OS:

 

 [2000-08-08 10:34 UTC] stefand at rila dot bg
getenv("REMOTE_ADDR"); returns no result
getenv("SERVER_NAME"); returns no result
......

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-08 10:36 UTC] stas@php.net
Which server do you use? Is PHP in CGI or ISAPI mode?
 [2000-09-03 19:43 UTC] sniper@php.net
No feedback from user. Closed.

--Jani
 [2000-09-04 10:49 UTC] sniper@php.net
So are you using CGI or ISAPI ?? 

Try <?php phpinfo();?> which shows the variables 
you can get.

--Jani
 [2000-09-04 11:03 UTC] sniper@php.net
When using ISAPI this won't work.
See #2425 

I reclassified this as documentation problem.
This should be mentioned in 'getenv' documentation?

--Jani
 [2000-09-11 15:23 UTC] stefand at rila dot bg
documented
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 19:00:01 2026 UTC