I had that before. 
OK, seems that my problem is not that simple. The thing is , I have something 
like this in my file test.php:

echo "This is test.php3";

Now, in my_api.inc, I want to know that I run test.php3, when I do
bash$ php test.php3

and the filename is test.php3 .  __FILE__ will give my my_api.inc instead.  I 
need it because my_api.inc do all sort of authenticating, session, etc.

Any solutions?
Reuben D. Budiardja

On Tuesday 17 July 2001 10:52 am, Boget, Chris wrote:
> > Seems that $PHP_SELF is not defined when it's run from the
> > command line.
> Try:
> __FILE__
> Chris

PHP General 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