home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / src / PHP / self.php3.txt < prev    next >
Encoding:
Text File  |  2002-05-06  |  432 b   |  12 lines

  1. --------------------------------------------------------------------------------
  2. <?php 
  3.      /************************************* 
  4.     This small pice of Code puts the name 
  5.     of the current Document into $docname. 
  6.     Very usefull for eg. 
  7.     <FORM ACTION="<?echo $docname;?>" METHOD=POST> 
  8.     *************************************/ 
  9.     $dirpices = explode( "/", $PHP_SELF); 
  10.     $docname = end($dirpices); 
  11. ?> 
  12.