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
Is php 5.6 secure?
What are constructor and destructor in PHP?
What is $_ files in php?
Explain mail function in PHP with syntax?
Why do you need php?
Which php global variable is used for uploading a file?
How to compare two strings with comparison operators in php?
What is the mysql injection?
Is nan in php?
Tell me what is the definition of a session?
What is use of count() function in php?
Is php fully object oriented?
Tell me how is the ternary conditional operator used in php?
How do you debug php?
What is difference between sql and php?