PX : code

phpself by Lukas Loesche
Download this code


<?php
    
/*************************************
    This small pice of Code puts the name
    of the current Document into $docname.
    Very usefull for eg.
    <FORM ACTION="<?echo $docname;?>" METHOD=POST>
    *************************************/
    
$dirpices explode("/"$PHP_SELF);
    
$docname end($dirpices);
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.