Re: Re: PHP 4.0 Bug #9931 Updated: under Communicator 4.76 {basename(PHP_SELF) doesn't return value}
| From: | Hartmut Holzgraefe | Date: | Fri, 23 Mar 2001 16:57:54 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #9931 Updated: under Communicator 4.76 {basename(PHP_SELF) doesn't return value} | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-49832@lists.php.net to get a copy of this message | ||
Ieleja wrote:
>
> my situation:
>
> is
> common.function.php
> function_abc()
> {
> $return_string = basename($PHP_SELF);
> return $return_string;
> }
>
> un ir
>
> listing.php
> {
> include("common.functions.inc.php");
>
> <? echo function_abc(); ?>
> }
>
> and there function () returns empty string ...
>
add "global $PHP_SELF;" in function_abc and it will work
--
Hartmut Holzgraefe hartmut@six.de http://www.six.de
+49-711-99091-77
Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4