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

Can you convert php to html?

967


What are the advantages and disadvantages of cascade style sheets?

1136


What are session variables in php?

1016


What's the best method for sanitizing user input with php?

925


Write logic to print Floyd's triangle in PHP?

1038


Which is better python or php?

992


When use javascript vs php?

1008


How to read and display a HTML source from the website url?

968


What is the different between count() and sizeof() in php?

950


What is the use of callback in php?

989


What is member variable?

969


Does php 5 support exceptions?

1128


Tell me what should we do to be able to export data into an excel file?

945


What are some new features introduced in php7?

8801


What is a substring in php?

1055