ID:               17021
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         PHP options/info functions
 Operating System: Windows XP Pro
 PHP Version:      4.2.0
 New Comment:

No, echo $PHP_SELF or var_dump(${PHP_SELF) *cannot* display PHP_SELF
unless you disabled php parsing or whatever.

Anyway, what does phpinfo() output say about PHP_SELF, does it show
anywhere up in the page? If so, where (paste the appropriate table
line) ?

And, also double check the register_globals ini setting in your
phpinfo() output. I still think you have it disabled.


Previous Comments:
------------------------------------------------------------------------

[2002-05-05 16:31:38] [EMAIL PROTECTED]

NOTHING. It doesn't output anything. Stays blank, on a Redhat Linux,
using Apache 1.3 it works. It displays PHP_SELF.

Thanks

David

------------------------------------------------------------------------

[2002-05-05 16:26:12] [EMAIL PROTECTED]

What's the output of $PHP_SELF ?

------------------------------------------------------------------------

[2002-05-05 16:12:18] [EMAIL PROTECTED]

No, I set it so, register_globals is on.

David

------------------------------------------------------------------------

[2002-05-05 16:06:33] [EMAIL PROTECTED]

In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See http://www.php.net/release_4_2_0.php for more info.



------------------------------------------------------------------------

[2002-05-05 15:54:31] [EMAIL PROTECTED]

I am on an Xitami Server V2.4d9 running Windows XP PRO  with PHP
Version 4.20. I am a script called PHPAdsNew and it uses the <?php echo
basename($PHP_SELF);?> PHP command to get the name of the file so, it
can submit forms.

Example: <form action="<?php echo basename($PHP_SELF);?>">

But, it will not work.. It stays EMPTY. PHP will not write the name of
the file. 

It would be way to hard to change the script around with over 80 files,
no way!

Thanks

David

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=17021&edit=1

Reply via email to