Re: Show Filename using Wildcards

From: Date: Thu, 29 Mar 2007 19:52:29 +0000
Subject: Re: Show Filename using Wildcards
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-251672@lists.php.net to get a copy of this message
Rahul Sitaram Johari wrote:
So I have to accomplish two things: 1. I have to eliminate the filepath from the result 2. I need to specify the variable that holds the phone number, (like $row[ŒPHONE¹]) instead of the actual phone number in the ³exec² command. Thanks!! Much Appreciated!
To get the filename component without the path, just use the basename() function: $file = basename($path); Ben

« previous php.general (#251672) next »