|
|
|
Get the script filename and extension in PHP
3
This simple script can be used to get the script filename and extensio
<?php
$t=explode("/",$_SERVER['SCRIPT_NAME']);
$t=explode(".",$t[count($t)-1]);
$strScriptName=$t[0];
$strScriptExtension=$t[1];
?>




There are currently no comments for this snippet.