Posted By

xida on 10/29/09


Tagged


Versions (?)

Get current script name without dir


 / Published in: PHP
 

  1. $file = $_SERVER["SCRIPT_NAME"];
  2. $break = Explode('/', $file);
  3. $pfile = $break[count($break) - 1];
  4. echo $pfile;

Report this snippet  

You need to login to post a comment.