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
What is the purpose of using php?
What is the meaning of xdebug?
What is the use of anonymous function in php?
What is the expansion of LAMP?
What is php oop?
Explain the difference between urlencode and urldecode?
Which programming language does php resemble to?
What is a php trait?
What is variable give example?
Tell me how can we determine whether a variable is set?
How values in arrays are indexed?
What is isset and unset in php?
What is difference between print_r and echo in php?
Is php faster than javascript?
Why echo is faster than print in php?