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 variable and data type?
What is the difference between Split and Explode in PHP?
What is the use of "echo" in php?
Does php 7 support multiple inheritance?
Explain how can php and javascript interact?
Which function is used in php to delete a file?
What is isset in php form?
How to make database connection in php?
How to call a php function from html button?
How to get ip address of clients machine?
What is the difference between html and php?
What is session expiry?
Can a trait extend a class php?
How can you upload a file using php?
How is csrf token generated?