Re: File Name case check
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: File Name case check

From: Al Kolff <alkolff@spam.sucks.earthlink.net>
Date: Thu Jul 14 2005 - 05:04:08 CEST

"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
Received on Mon Oct 17 21:06:48 2005