# $php\_self

**URL:** <https://forum.kirupa.com/t/php-self/195239>\
**Category:** programming\
**Created:** [July 30, 2006, 1:58am UTC](https://forum.kirupa.com/t/php-self/195239 "2006-07-30T01:58:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitaeshi](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@kitaeshi](https://forum.kirupa.com/u/kitaeshi)\
**Post date:** [July 30, 2006, 1:58am UTC](https://forum.kirupa.com/t/php-self/195239/1 "2006-07-30T01:58:35Z")

</div>

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.
