[pLog-svn] r5260 - in plog/branches/lifetype-1.2/class: file gallery/resizers
Mark Wu
markplace at gmail.com
Tue Apr 3 12:55:49 EDT 2007
Maybe not .... Accodring to the code, I guess it shoule return
"index.php?abc=1&file=123.jpg"
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> Sent: Wednesday, April 04, 2007 12:52 AM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r5260 - in
> plog/branches/lifetype-1.2/class: file gallery/resizers
>
> The first one should return 123.jpg?
>
> On Wed, 4 Apr 2007, Mark Wu wrote:
>
> > Mmm... I will write a unit test for this. Let's see if it
> can handle
> > http request like
> >
> > http://aa.bb.cc/sddd/sss/index.php?abc=1&file=123jpg
> >
> > Or
> >
> > ./gallery//ddd/123.jpg
> >
> > Or
> >
> > ./gallery/1/ddd/123.jpg
> >
> >
> > All of them, should return 123.jpg
> >
> > 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:38 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 get "pvollma"'s original post, with an odd number of
> >> backslashes. What does that do?
> >>>> $tmp = preg_split("[\\\]",$newfile);
> >>
> >> Shouldn't there be just two backslashes?
> >>
> >> And then the one you got from "support" I have no idea what it is
> >> doing.
> >> I see the last "\/" which makes sense, but the previous five(!)
> >> backslashes, I don't understand. I think I would
> understand it if it
> >> was just "\\\/" which results in "\/" unescaped.
> >>
> >>
> >> On Tue, 3 Apr 2007, Mark Wu wrote:
> >>
> >>> 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
> >>>>
> >>>
> >>> _______________________________________________
> >>> pLog-svn mailing list
> >>> pLog-svn at devel.lifetype.net
> >>> http://limedaley.com/mailman/listinfo/plog-svn
> >>>
> >>
> >> --
> >> Jon Daley
> >> http://jon.limedaley.com/
> >>
> >> An ignorant person is one who doesn't know what you have
> just found
> >> out.
> >> -- Will Rogers
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://limedaley.com/mailman/listinfo/plog-svn
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
>
> --
> Jon Daley
> http://jon.limedaley.com/
>
> Parking is for Church patrons only. Violators will be baptized.
> -- sign outside a church
> _______________________________________________
> 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