[pLog-svn] r5260 - in plog/branches/lifetype-1.2/class: file gallery/resizers

Mark Wu markplace at gmail.com
Tue Apr 3 11:28:38 EDT 2007


Hi Jon:

I hope I understand what it is doing. :(

I get it from php.net
http://tw.php.net/manual/en/function.basename.php#62031

And, it works well when I testing Chiense and English file name.

I review several basename() implementations from that post, I found this one
is the fastest and shortest ...

If you have any idea about this, please kindly let me know.

Mark 

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> Sent: Tuesday, April 03, 2007 11:22 PM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r5260 - in 
> plog/branches/lifetype-1.2/class: file gallery/resizers
> 
>  	I don't think I want to know what this is doing.  
> But... what is this doing?  I can't quite parse it.  Seems 
> like it saying remove the entire string if it is suffixed by 
> three backslashes and a forward slash - no wait, there aren't 
> the right number of backslashes for that.
> 
> On Tue, 3 Apr 2007, mark at devel.lifetype.net wrote:
> > Add a new File::basename() to fixed basename() error when 
> we use thumbnailgenerator to generate thubmnail from a image 
> with CJK filename.
> > +  $basename = preg_replace( '/^.+[\\\\\\/]/', '', $fileName );
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
> 



More information about the pLog-svn mailing list