RE: [PHP] extract(filename)

2004-02-04 Thread Burhan Khalid
John Taylor-Johnston wrote: In Borland Delphi, I can extract a filename from the paramstr(0) and then exchange out the extension. ChangeFileExt(extractfilename(paramstr(0)), '.html'); Is there a way to extract the filename of /home/www/calendars/february2004.html and swap its extension

Re: [PHP] extract(filename)

2004-02-04 Thread Yann Larrivee
Check pathinfo() http://ca3.php.net/manual/en/function.pathinfo.php Yann www.phpquebec.org On Wed, 2004-02-04 at 12:56, John Taylor-Johnston wrote: In Borland Delphi, I can extract a filename from the paramstr(0) and then exchange out the extension.

Re: [PHP] extract(filename)

2004-02-04 Thread John Taylor-Johnston
Burhan, Novel indeed! RTFM :) I was playing around with filename and a few other words. Didn't think of basename. Thanks, J Is there a way to extract the filename of /home/www/calendars/february2004.html and swap its extension for .htm? How about starting at the manual? What a novel

[PHP] [ERR] RE: [PHP] extract(filename)

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- John Taylor-Johnston wrote: In Borland Delphi, I can extract a filename from the paramstr(0) and then exchange out the extension. ChangeFileExt(extractfilename(paramstr(0)), '.html');

RE: [PHP] [ERR] RE: [PHP] extract(filename)

2004-02-04 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, February 04, 2004 10:23 AM said: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) OH GREAT! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] [ERR] RE: [PHP] extract(filename)

2004-02-04 Thread John Nichel
Chris W. Parker wrote: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, February 04, 2004 10:23 AM said: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) OH GREAT! After the last go around, anything coming from hanmir.com gets sent to

Re: [PHP] extract(filename)

2004-02-04 Thread Jason Wong
On Thursday 05 February 2004 02:18, John Taylor-Johnston wrote: Novel indeed! RTFM :) I was playing around with filename and a few other words. Didn't think of basename. Here's another novel idea: The manual is organised around chapters and in most cases each chapter deals with a group of