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

Should I learn php before wordpress?

934


How to check whether a number is prime or not?

992


What is difference between session and cookie in PHP?

939


Does php 7 support multiple inheritance?

953


What type of operation is needed when passing values through a form or an url?

931


What is csrf mvc?

968


Difference between $message vs. $$Message in php.

954


Explain NULL?

980


What is the meaning of a final class and a final method?

1048


What is mysqli php?

964


Is php used for frontend or backend?

973


What are the advantages of php?

979


What's the difference between accessing a class method via -> and via ::?

1058


What is regular expression in javascript?

888


What are the benefits of using php and mysql?

951