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 / hitha

$file_path=$_SERVER["SCRIPT_NAME"];

$break=explode('/',$file_path);

$file_name=$break[count($break)-1];

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the array operator '===' means?

1048


Tell me what is the use of isset() in php?

1070


What is uri routing?

1046


What is api example?

991


Is laravel better than codeigniter?

1035


How can you associate a variable with a session?

1019


What is use of count() function in php?

1030


How does cookies work in php?

976


Explain what does the function get_magic_quotes_gpc() means?

931


What is list function with their uses.

968


What are constructor and destructor in PHP?

1109


How to find the index of an element in an array php?

1005


Why is facebook still using php?

1089


Do you know is it possible to extend the execution time of a php script?

1049


What are different types of runtime errors in php?

1080