Posted by Al Kolff on 07/14/05 18:18
"Shelly" <sheldonlg.news@asap-consult.com> wrote in message
news:xJWdnTBlZvyLfkjfRVn-iA@comcast.com...
>
> "Al Kolff" <alkolff@spam.sucks.earthlink.net> wrote in message
> news:ICkBe.3146$dU3.1207@newsread2.news.pas.earthlink.net...
> >
> > "SOR" <webmaster@sparesorrepair.co.uk.INVALID> wrote in message
> > news:MPG.1d3e867e1879a024989cf9@no-cancel.newsreader.com...
> >> <comp.lang.php , Al Kolff , alkolff@spam.sucks.earthlink.net>
> >> <kZXAe.2562$dU3.1802@newsread2.news.pas.earthlink.net>
> >> <Tue, 12 Jul 2005 23:01:36 GMT>
> >>
> >> > I also usually use all lowercase file names. But, I down loaded the
> >> > ISchoolAd scripts.
> >> > and in some pages the filenames are capitalized and in others they
are
> > not.
> >> > Same for folder names. Same for filenames.
> >> > Because I loaded and checked it on my Windows machine it worked fine
> > .When I
> >> > uploaded it to the Linux based server there have been all kinds of
> >> > interesting things going on. So I thought someone else must have had
> >> > the
> >> > same problem. And maybe they had written a search and replace that
> > compared
> >> > file/folder names with scripts and corrected or highlighted them.
> >> >
> >>
> >> It doesnt sound too hard to write .
> >>
> >> - find a php display folders loop like the one on www.phpemail.co.uk
and
> >> adapt it to suit
> >>
> >> - grab the filename of each file
> >>
> >> - check for uppercase characters
> >>
> >> - change to lowercase if needed and edit/save the filename
> >>
> >> Somebody more experienced can tell you how to 'also' check the sub
> >> folders if you want to do it that way .
> >>
> >
> > I'm trying to do that right now and if I get it to work I'll upload to
one
> > of the script sharing sites. Till then I had a flash - Why not just put
> > two
> > copies of the file in the folder with different Test.gif and test.gif.
It
> > sure isn't elegant but it works for now till I get the code cleaned up.
> >
> > Thanks for the suggestion it kick started my brain.
> > al
>
> How about
> strtolower -- Make a string lowercase
>
> Also, there is the string comparison ignoring case.
>
> Shelly
>
>
Thank you! That will make it work I think.
al
[Back to original message]
|