How can I get the only name of the current executing file?
Answer Posted / hitha
$file_path=$_SERVER["SCRIPT_NAME"];
$break=explode('/',$file_path);
$file_name=$break[count($break)-1];
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is different types of visibility?
How to split a string into array using php?
Why do we use session?
How to invoke a user function?
Are static variables final?
What is difference between html and php?
What do you mean by core php?
What is the best php version for wordpress?
How to check whether a number is prime or not?
What is a trait in php?
Which is used to maintain the value of a variable over different pages?
Tell me how do you define a constant?
How to swap two variables without using 3rd temp variable.
Is gender a dependent variable?
Why we use get in php?