fork(6) download
  1. <?php
  2. echo basename( __FILE__ ) ."\n";
  3.  
  4. $path_parts = pathinfo( __FILE__ );
  5. echo '1.'.$path_parts['dirname'], "\n";
  6. echo '2.'.$path_parts['basename'], "\n";
  7. echo '3.'.$path_parts['extension'], "\n";
  8. echo '4.'.$path_parts['filename'], "\n"; // desde o PHP 5.2.0
  9. ?>
Success #stdin #stdout 0.02s 52456KB
stdin
Standard input is empty
stdout
prog.php
1./home/eq1okH
2.prog.php
3.php
4.prog