Reply to Re: Problem with http File Transfer

Your name:

Reply:


Posted by Jerry Stuckle on 06/05/07 00:26

shadowman wrote:
> Mike P2 wrote:
>
>>
>> What is your error reporting level set to? If you set it to E_ALL at
>> the top of the script, does it complain about not being able to modify
>> header information? I'm thinking that you might have some empty lines
>> in myImageSave.php outside of the PHP block or before the <?php line
>> in this file.
>>
>
> No errors coming up in my log, but I checked the myImageSave.php file,
> and sure enough, there were 4 linefeeds after the ?>
>
> Removing those fixed the problem. Thanks for your help! It makes sense,
> although I never would have thought about that.

In addition to what Mike said - you're script is very unsafe. What
happens if you get two people who try to generate the files at almost
exactly the same time? Since you're using the same filename for all of
them, one will overwrite the other.

You should generate a unique filename for each one, then delete it at
the end (or after some period of time, anyway).

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

[Back to original 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

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