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 most common http method?

1014


Name some of the popular frameworks in php.

938


How does html form submit work?

860


What is $_ post in php?

1032


What is a php class?

975


What are properties in php?

920


Explain mail function in PHP with syntax?

950


Can we use include ("xyz.php") two times in a php page "index.php"?

970


How do I end a php session?

895


What is the difference between echo, print and printf()?

954


Can we set session value in javascript?

981


What is crypt () in php?

862


What is htmlspecialchars?

936


Tell me how to set a page as a home page in a php based site?

886


What is the use of isset() in php?

973