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 do you mean by core php?
Explain the difference between unlink() and unset()?
What is the use of rand() in php?
How to execute an sql query?
Is it possible to submit a form with a dedicated button?
Explain what is meant by pear in php?
What is difference between session and cookies in php?
Does php support inheritance?
How can we change the value of a constant?
Explain what are the different errors in php?
Which php framework is best for web development?
How to reset/destroy a cookie in php?
How do you create an array in php?
What is apache and php?
Is php deprecated?