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

What is the purpose of using php?

1088


What is the meaning of xdebug?

1011


What is the use of anonymous function in php?

1023


What is the expansion of LAMP?

1105


What is php oop?

1059


Explain the difference between urlencode and urldecode?

1105


Which programming language does php resemble to?

1058


What is a php trait?

999


What is variable give example?

1156


Tell me how can we determine whether a variable is set?

957


How values in arrays are indexed?

1105


What is isset and unset in php?

1073


What is difference between print_r and echo in php?

934


Is php faster than javascript?

994


Why echo is faster than print in php?

1046