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  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77 

Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to