03-01-2008, 07:21 PM
|
#11 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Location: Brazil
Posts: 77
Thanks: 14
|
Use the basename function, it strips everything but the filename.
PHP Code:
$path = "/home/httpd/html/index.php";
echo basename($path); // will show just "index.php";
|
|
|