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 / lakshmi

<?php
$path = "/home/httpd/html/index.php";
$file = basename($path);
$file = basename($path, ".php");
?>

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does php use html?

1034


Which is true about the singleton design pattern?

984


What are php loops?

1013


Differentiate between php5 and php7?

1116


Please explain is it possible to use com component in php?

1044


Is time a dependent variable?

1031


What are the different errors in php?

1049


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1958


Can you pass an array into a function?

1126


Explain me what is the meaning of a persistent cookie?

1120


Why php is used?

1157


List types of array are available in php?

1075


What is psr in php?

1105


How can we submit from without a submit button?

1052


Why do we use in php?

1046