|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 05:00:02 2025 UTC |
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