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
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
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
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
-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
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
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
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
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
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
);
/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
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
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
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
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
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
, 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
17 matches
Mail list logo