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 maximum size of a table in mysql?
How to execute an sql query?
What are php keywords?
How can we access the data sent through the url with the post method?
What is the latest version of php?
Define about declare construct?
How to write in a file in php?
What is the difference between htmlentities() and htmlspecialchars()?
Explain what does the function get_magic_quotes_gpc() means?
What is cookie and session in php?
How to create an array of a group of items inside an html form?
What is php addslashes?
What is php destruct?
What is member function?
How to get the value of current session id?