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 is different types of visibility?

978


How to split a string into array using php?

1261


Why do we use session?

1060


How to invoke a user function?

1024


Are static variables final?

1053


What is difference between html and php?

985


What do you mean by core php?

1007


What is the best php version for wordpress?

1193


How to check whether a number is prime or not?

1117


What is a trait in php?

1073


Which is used to maintain the value of a variable over different pages?

1071


Tell me how do you define a constant?

1020


How to swap two variables without using 3rd temp variable.

966


Is gender a dependent variable?

1032


Why we use get in php?

1038