Hi there,

I have the following line in one of my script.

print $_SERVER['SCRIPT_NAME'];

it returns "/php/php.exe"

I thought it would return the currently executing php script name.

I do not understand what's went wrong.

Your help will be much appreciated.

Thanks
Hameed

    Thanks,

    I got it to work using $_SERVER['PHP_SELF']

    Thanks again.
    Hameed

      Write a Reply...