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
How can we access the data sent through the url with the get method?
Where are cookies stored php?
Explain how can php and javascript interact?
Explain me what is the goto statement useful for?
Difference between array_combine and array_merge?
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
How we get ip address of client, previous reference page etc?
How many ways to include variables in double-quoted strings in php?
What does the scope of variables means?
Can php replace javascript?
What does php mean?
How to get complete current page url in php?
Write a program to find no of days between two dates in php?
What is the use of isset() in php?
Write a program to get second highest number in an array using php?