From: [EMAIL PROTECTED] Operating system: Windows XP Pro PHP version: 4.2.0 PHP Bug Type: PHP options/info functions Bug description: PHP_SELF Displays nothing
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 bug report at http://bugs.php.net/?id=17021&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17021&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17021&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17021&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17021&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17021&r=support Expected behavior: http://bugs.php.net/fix.php?id=17021&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17021&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17021&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17021&r=globals