Re: $PHP_SELF not set !
| From: | John Angelmo | Date: | Mon, 26 Nov 2001 15:02:01 +0000 |
| Subject: | Re: $PHP_SELF not set ! | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-4046@lists.php.net to get a copy of this message | ||
http://h14n2fls34o927.telia.com/php_self.php
http://h14n2fls34o927.telia.com/php_self.phps
http://h14n2fls34o927.telia.com/phpinfo.php
Hope that helps
/Veidit
"Hellekin O. Wolf" wrote:
>
> 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);
> ?>
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-qa-unsubscribe@lists.php.net
> For additional commands, e-mail: php-qa-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net