$PHP_SELF not set !
| From: | Hellekin O. Wolf | Date: | Mon, 26 Nov 2001 14:59:16 +0000 |
| Subject: | $PHP_SELF not set ! | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-4045@lists.php.net to get a copy of this message | ||
We've got a problem : http://php.hellekin.com/test/php_self.php
http://php.hellekin.com/test/php_self.phps for the source doesn't seem to work. Gotta check if it comes from Apache or PHP or my client.
So, here is the code :
<?php
$reg = ini_get('register_globals') ? "on" : "off";
echo <<<EOD
<table align="center"
border="0"
width="600"
cellspacing="1"
cellpadding="4"
bgcolor="#000000">
<tr bgcolor="#cccccc">
<th align="left"> register_globals </th>
<td bgcolor="#ccccff"> $reg </td>
</tr>
<tr bgcolor="#cccccc">
<th align="left"> PHP_SELF </th>
<td bgcolor="#ccccff"> $PHP_SELF </td>
</tr>
<tr bgcolor="#cccccc">
<th align="left"> _SERVER['PHP_SELF'] </th>
<td bgcolor="#ccccff"> $_SERVER[PHP_SELF] </td>
</tr>
<tr bgcolor="#cccccc">
<th align="left"> REQUEST_URI </th>
<td bgcolor="#ccccff"> $REQUEST_URI </td>
</tr></table> EOD; echo '<p>The last line of this file is : print_r($PHP_SELF);</p>'; print_r($PHP_SELF); ?>