View Single Post
  #3 (permalink)  
Old 07-18-2008, 07:37 PM
Brett
 
Posts: n/a
Diggs:
Default Re: Help with arrays in PHP

Hi David,

Thanks. I've got some of it working, however, after uploading with
upload_both_new(), the thumbnail images now have _tmb inserted between
the file name and the extension. So when deleting I keep getting
warnings that the file mypic001.jpg cannot be found in the thumbs
directory. How do I get the _tmb into the file name?

By the way, you used unset() where I think you meant unlink(). I
changed that and it does at least delete the main picture. Also, in the
foreach you included basename, but that threw an error, so I took it
out. I can't understand why it throws an error, but whenever I have
tried using it in any situation, it objects.

Finally, I have discovered that if I upload a file named Ti301.JPG, I
get Ti301.JPG001_thb.jpg. It seems that the strtolower() function in
getNextFilename5.php is not converting the uppercase extension, it is
just adding the incremented number plus _tmb and the new extension. Any
ideas about how to correct that?

Many many thanks.

Best,

Brett
Reply With Quote