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 the most common http method?
Name some of the popular frameworks in php.
How does html form submit work?
What is $_ post in php?
What is a php class?
What are properties in php?
Explain mail function in PHP with syntax?
Can we use include ("xyz.php") two times in a php page "index.php"?
How do I end a php session?
What is the difference between echo, print and printf()?
Can we set session value in javascript?
What is crypt () in php?
What is htmlspecialchars?
Tell me how to set a page as a home page in a php based site?
What is the use of isset() in php?