$php_self

Hi all, how come when i try a $php_self on a form action on my localhost it will prompt a errors msg:

You don’t have permission to access /test/<br /><b>Notice</b>: Undefined variable: PHP_SELF in <b>c:\easyphp1-8\www est\12.php</b> on line <b>20</b><br /> on this server.

But when i upload to the webserver on the www, it work smoothly.

Does it have to do with setting the config file of the php.ini?

There are also errors setting var like $user on a localhost and the form cannot display the $user.

Thanks.