self.php 102B

12345
  1. <?php
  2. function my_path() {
  3. return preg_replace('|/[^/]*.php$|', '/', $_SERVER['SCRIPT_URI']);
  4. }
  5. ?>