Displays the current filename.
<?php echo $_SERVER['SCRIPT_NAME']; ?>
http://www.yoursite.com/sample/ -- -- -- /sample/index.php
http://www.yoursite.com/sample/index.php -- -- -- /sample/index.php
http://www.yoursite.com/sample/index.php?q=variable -- -- -- /sample/index.php
http://www.yoursite.com/sample/index.php/directory/test -- -- -- /sample/index.php
No comments:
Post a Comment