Actually, you'll also need to call basename().  So,

basename($_SERVER['PHP_SELF'] )  == __FILE__

~ ryan ~


On Jan 5, 2006, at 9:03 AM, Edward Faulkner wrote:

> On Thu, Jan 05, 2006 at 07:03:34AM +0900,  
> page77.office / googlemail.com wrote:
>> <FORM action="<?php print $_SERVER['PHP_SELF'];?>" method="POST"  
>> name =
>> "Nextrec" >
>
> If I remember my PHP correctly, $_SERVER['PHP_SELF'] is simply the
> name of the currently executing file.  The Ruby equivalent is
> __FILE__.
>
> regards,
> Ed