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...

How can I get the only name of the current executing file?

Answer Posted / sudeb mandal

<?php
//To get current file name.
$file = $_SERVER["SCRIPT_NAME"];
echo $file;

?>

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is faster in php?

1052


What is php used for?

951


What is use of isset function in php?

1035


What is the use of addslashes in php?

933


Starting or restarting a computer is called

1018


Tell me how is it possible to return a value from a function?

993


Does php support multiple inheritances?

986


Explain php explode() function.

1035


What is basename php?

962


Explain why would we use === instead of ==?

928


In how many ways we can retrieve the data in the result set of mysql using php?

928


What is in php 7?

1011


Write a hello world program using variable?

932


How to set a page as a home page in a php based site?

927


What is var_dump?

1010