script: <? ECHO "$PHP_SELF"; ?>
error: Notice: Undefined variable: PHP_SELF in d:\inetpub\wwwroot\helpdesk\test.php on line 2
any ideas what might be causing this?
The reason you're getting that parse error is you put $PHP_SELF in quotation marks. Take the quotation marks away and it should be fine.
that's not the reason, this would work fine with or without the double quotes. More likely is that regitser_globals is OFF. try this:
<? echo $_SERVER['PHP_SELF'] ; ?>
OK I should have tested that first hehe I just did all 3 on a custom built php 4.2.1 setup and they worked so you may be right about the register_globals
thanks a lot, .. i was just downstairs looking through the php.ini files and found that the global variables are now turned off by default. and to my suprise i already have all this help by the time i return to the forum.
thank you! -mike