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:
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
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
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
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
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
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
>
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
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
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"
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
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) {
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
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
> -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
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
16 matches
Mail list logo