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...

which function used to get the file name in php?

Answer Posted / naga

$parts = Explode('/', $_SERVER["SCRIPT_NAME"]);
$currentFile = $parts[count($parts) - 1];

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I learn php fast?

1003


Tell me how do you execute a php script from the command line?

955


What is the scope of a variable defined outside a function?

972


Tell me what is use of in_array() function in php?

1019


what are the differences between php and perl

1985


What type of errors can be occurred in php?

926


What is the use of offset in mysql?

887


What happens when submit button is clicked?

882


how to track user logged out or not? when a user is idle?

864


What is $_ request in php?

837


How to increase the execution time of a PHP script?

973


Is laravel easy to learn?

900


Are static variables final?

956


Tell us what is the difference between session_unregister() and session_unset()?

950


What is the most convenient hashing method to be used to hash passwords?

931