General Community > Scripting Help
stupid $PHP_SELF question...
Aquilo:
how do you get php on a windoz IIS to know what $PHP_SELF is??
<?php highlight_file($PHP_SELF); ?>
[Unknown]:
$PHP_SELF works on IIS. It gives the URL to the current script.
-[Unknown]
Aquilo:
this is all I get when I try to use it:
Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\print.php on line 5
and I can't remember it ever working! >:(
[Unknown]:
That's because it's $_SERVER['PHP_SELF']..
-[Unknown]
Aquilo:
cool! :D so $_SERVER['PHP_SELF'] is better then just $PHP_SELF??
Navigation
[0] Message Index
[#] Next page
Go to full version