You are here: Re: Changing filename makes getimagesize work...? « PHP Programming Language « IT news, forums, messages
Re: Changing filename makes getimagesize work...?

Posted by Jerry Stuckle on 05/22/07 00:20

Acrobatic wrote:
> I'm having troubles uploading an image and getting data from
> getimagesize().
>
> When I upload a file with the name "20050914_loRes_XLH1.jpg", and do a
> getimagesize on it, it returns no info (null and empty). However, if I
> change the filename to something like "camera.jpg" and upload it,
> getimagesize() works perfectly, and I can print_r the array of data.
>
> PHP is uploading the files to my /var/temp directory just fine. Also,
> I have all errors turned on, and nothing looks out of place. Any ideas
> why changing the file name would let this work?
>

I've had problems in the past with working on uploaded files in the /tmp
directory. I've had much better success with them after calling
move_uploaded_file() to get it into a "working" directory.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация