Re: [PHP] Show Filename using Wildcards

2007-03-30 Thread Robin Vickery
On 29/03/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record filename is the phone number. But the filenames have dates other symbols besides the phone number as

Re: [PHP] Show Filename using Wildcards

2007-03-30 Thread Rahul Sitaram Johari
Ave, Hmmm... Not familiar with glob() at all... Let me dig! Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/30/07

[PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record filename is the phone number. But the filenames have dates other symbols besides the phone number as well. They all do begin with a phone number though. How can

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Brad Bonkoski
Rahul Sitaram Johari wrote: Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record filename is the phone number. But the filenames have dates other symbols besides the phone number as well. They all do begin with a

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
-Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:12 PM To: PHP Subject: [PHP] Show Filename using Wildcards Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, Yes well, I did kind of figure out that I have to scan through contents of a directory, pull up a file list, and then do some kind of pattern matching to narrow down to the files I need. But at this moment I'm kinda struggling with the directory file functions - haven't really dwelled into

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Brad Bonkoski
Rahul Sitaram Johari wrote: Ave, Yes well, I did kind of figure out that I have to scan through contents of a directory, pull up a file list, and then do some kind of pattern matching to narrow down to the files I need. But at this moment I'm kinda struggling with the directory file functions

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
PROTECTED] Sent: Thursday, March 29, 2007 9:12 PM To: PHP Subject: [PHP] Show Filename using Wildcards Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record filename is the phone number. But the filenames have

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Ben Roberts
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

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, This Works!! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo substr($value,35).br; } ? THANKS! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
); /Peter -Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:49 PM To: Peter Lauri; PHP Subject: Re: [PHP] Show Filename using Wildcards Peter, Believe it or not, but this is actually working. I'm on a Mac OS X, which is linux

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, This Works!! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo substr($value,35).br; } ? THANKS! I recommend using

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
DON'T commit suicide mate :) What if you one day move the path? ;) -Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:54 PM To: Peter Lauri; PHP Subject: Re: [PHP] Show Filename using Wildcards Ave, This Works

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Awesome!! This Works!! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo basename($value).br; } ? THANKS! ~~~ Rahul Sitaram Johari CEO, Twenty Four

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Agreed! And definitely modified my code to use basename() ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo basename($value).br; } ? Thanks! On 3/29/07 3:58 PM, Tijnema ! [EMAIL

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:54 PM To: Peter Lauri; PHP Subject: Re: [PHP] Show Filename using Wildcards Ave, This Works!! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Roberto Mansfield
, March 29, 2007 9:54 PM To: Peter Lauri; PHP Subject: Re: [PHP] Show Filename using Wildcards Ave, This Works!! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo substr($value,35).br