Answer Posted / naga
$parts = Explode('/', $_SERVER["SCRIPT_NAME"]);
$currentFile = $parts[count($parts) - 1];
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain the difference between urlencode and urldecode?
How to get number of days between two given dates using PHP?
How to get complete current page url in php?
How values in arrays are indexed?
Does php support overloading?
Is php easier than javascript?
What is die in php?
Which array function checks if the particular key exists in the array?
What is the difference between get and post method in php?
What are the correct and the most two common way to start and finish a PHP block of code?
What is namespaces in PHP?
Can php variables have numbers?
Is string php function?
What is the use of rand() in php?
How to remove blank spaces from the string?