Click to See Complete Forum and Search --> : $_server['request_uri']


quadoc
05-09-2008, 05:17 PM
I've the a simple code below, but some how it keep giving the error. Does anyone know? Thanks...

$url2 = $_SERVER['REQUEST_URI'];


Notice: Undefined index: REQUEST_URI in c:\Inetpub\wwwroot\WebTicket\test_user.php on line 102

NogDog
05-09-2008, 05:50 PM
Try the following to find out what $_SERVER elements are populated by your server:

<?php
echo "<pre>" . print_r($_SERVER, 1) . "</pre>";
?>

Also, be sure to check your spelling including upper-/lower-case letters in the actual code.

apulmca2k4
05-09-2008, 11:50 PM
I've the a simple code below, but some how it keep giving the error. Does anyone know? Thanks...

$url2 = $_SERVER['REQUEST_URI'];


Notice: Undefined index: REQUEST_URI in c:\Inetpub\wwwroot\WebTicket\test_user.php on line 102


Your Problem may be out of this code. So, can u show your all code in forum.

Thanks:)