Current file name


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. $break = Explode('/', $_SERVER["SCRIPT_NAME"]);
  3. $self_file = $break[count($break) - 1];
  4. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.