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
Should I learn php before wordpress?
How to check whether a number is prime or not?
What is difference between session and cookie in PHP?
Does php 7 support multiple inheritance?
What type of operation is needed when passing values through a form or an url?
What is csrf mvc?
Difference between $message vs. $$Message in php.
Explain NULL?
What is the meaning of a final class and a final method?
What is mysqli php?
Is php used for frontend or backend?
What are the advantages of php?
What's the difference between accessing a class method via -> and via ::?
What is regular expression in javascript?
What are the benefits of using php and mysql?