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 faster in php?
What is php used for?
What is use of isset function in php?
What is the use of addslashes in php?
Starting or restarting a computer is called
Tell me how is it possible to return a value from a function?
Does php support multiple inheritances?
Explain php explode() function.
What is basename php?
Explain why would we use === instead of ==?
In how many ways we can retrieve the data in the result set of mysql using php?
What is in php 7?
Write a hello world program using variable?
How to set a page as a home page in a php based site?
What is var_dump?