|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-05 15:54 UTC] dgtech at riverview dot net
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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 06:00:01 2025 UTC |
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.