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

Explain the difference between urlencode and urldecode?

1051


How to get number of days between two given dates using PHP?

898


How to get complete current page url in php?

1060


How values in arrays are indexed?

1059


Does php support overloading?

1033


Is php easier than javascript?

989


What is die in php?

1046


Which array function checks if the particular key exists in the array?

898


What is the difference between get and post method in php?

961


What are the correct and the most two common way to start and finish a PHP block of code?

1064


What is namespaces in PHP?

993


Can php variables have numbers?

1002


Is string php function?

1065


What is the use of rand() in php?

1042


How to remove blank spaces from the string?

1014