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 5:

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

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Roberto Mansfield
e: > >> 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: Pe

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
t;Peter Lauri" <[EMAIL PROTECTED]> wrote: > 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

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Agreed! And definitely modified my code to use basename() "; } ?> Thanks! On 3/29/07 3:58 PM, "Tijnema !" <[EMAIL PROTECTED]> wrote: > On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: >> Ave, >> >> This Works!! >> >>>exec("find /Users/rjohari/Documents/XFER/es

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Awesome!! This Works!! "; } ?> 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/29/07 3:52 PM, "Ben Robe

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 >

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, This Works!! "; } ?> THANKS! I recommend using basename($value) instead of substr($value,35) If the directory changes, the basename would still return valid values, while substr wouldn't Tijnema

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
quot;$1", $file); /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

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, This Works!! "; } ?> 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/29/07 4:31 PM, "Peter Lauri"

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 get

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Peter, Believe it or not, but this is actually working. I'm on a Mac OS X, which is linux underneath, so I was hopeful about the command you provided. I ran this code: exec("find /Users/rjohari/Documents/XFER/espi/ -type f -name 33*.vox", $files); foreach ($files as $value) {

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

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