Monday, April 27, 2009

Get filename in php command line

<?php
### Get filename in php command line cli mode
echo __FILE__ . '
';
echo $PHP_SELF;
?>

No comments: