How can I get the only name of the current executing file?
Answer Posted / sudeb mandal
<?php
//To get current file name.
$file = $_SERVER["SCRIPT_NAME"];
echo $file;
?>
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is static method php?
What is nan value?
What are encryption functions in php?
What are majic methords in php?
How many ways to include variables in double-quoted strings in php?
Is php required for wordpress?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
How to copy a file?
Explain about getters and setters in php?
Write a program to get lcm of two numbers using php?
Does browser understand php?
Why echo is faster than print in php?
How check submit button is clicked in php?
What is string function sql?
How can we check the value of a given variable is a number?