Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the maximum size of a table in mysql?

1044


How to execute an sql query?

1037


What are php keywords?

985


How can we access the data sent through the url with the post method?

997


What is the latest version of php?

1095


Define about declare construct?

1106


How to write in a file in php?

1061


What is the difference between htmlentities() and htmlspecialchars()?

1054


Explain what does the function get_magic_quotes_gpc() means?

989


What is cookie and session in php?

1000


How to create an array of a group of items inside an html form?

1045


What is php addslashes?

1173


What is php destruct?

1022


What is member function?

1113


How to get the value of current session id?

1011