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

How many types of session are there?

1033


Explain me what is the goto statement useful for?

807


Does php have future?

955


What is composer used for?

948


Php being an open source is there any support available to it?

1096


What is overloading and overriding in oop?

1013


Explain what does the unset() function means?

1135


Does php have a future?

928


What is difference between strstr() and stristr() in PHP?

978


What is delimiter php?

974


What are the characteristics of php variables?

1062


How do I escape in php?

993


What is an associative array?

1040


What are the difference between echo and print?

985


What is php dependency injection?

921