php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16339 Warning: Undefined index .....
Submitted: 2002-03-29 00:54 UTC Modified: 2002-03-29 01:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: popocola at hotmail dot com Assigned:
Status: Not a bug Package: Other web server
PHP Version: 4.1.2 OS: XP Edition
Private report: No CVE-ID: None
 [2002-03-29 00:54 UTC] popocola at hotmail dot com
i try to add ENV in my Webpage but display error messege

Warning: Undefined index: HTTP_X_FORWARDED_FOR in d:\NETWORK\SAMBAR\docs\00\index.php on line 26

<?
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
echo $ip;
exit();
?>

but variables_order = "EGPCS" always in my php.ini

my web server is sambar 5.1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-29 01:22 UTC] derick@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


 [2003-01-13 14:31 UTC] greg at ekingme dot com
I am having the same proglem!  I cannot figure it out!

I am using Abyss Web Server 1.1.2 and I have installed php 4.3.0 and it gives me the same thing!

using this code:
<?php
if (empty($e)) { $e =home; }
$page = array( home => "pages/home.php", gates => "pages/gates.php", plate => "pages/plate.php", inuit => "pages/inuit.php", tut => "pages/tut.php", koala => "pages/koala.php", rome => "pages/rome.php", sci => "pages/sci.php", sunshine => "pages/sunshine.php", rainer => "pages/rainer.php", blonde => "pages/blonde.php", mamma => "pages/mamma.php", pass => "pages/pass.php", mail => "pages/mail.php", shop => "pages/shop.php", im => "pages/im.php", contact => "pages/contact.php", thanks => "pages/thanks.php", buddy => "pages/buddy.php", buddyinfo => "pages/buddyinfo.php",);
include("$page[$e]");
?>

I get this error:
Notice: Use of undefined constant main - assumed 'main' in C:\Documents and Settings\Gregory.GATEWAY\My Documents\Sites\EKINGME 2003\index.php on line 81
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC