You are here: Re: Learning PHP with Lighty and W3Schools « PHP Programming Language « IT news, forums, messages
Re: Learning PHP with Lighty and W3Schools

Posted by seaside on 12/20/06 14:07

Cam schrieb:

It works fine when uploading the small files, however when i am testing
> it with a larger file image 100k or more the server seems to freak out.
> The lighttpd error log shows this
>
> (connections.c.1069) denying upload as opening to temp-file for upload
> failed: /var/tmp/lighttpd-upload-2AGhiX No such file or directory
>
> Firefox gives me 'The connection has been reset' message.
>
> I am thinking there is maybe a setting in php.ini I should check? Not
> sure, any ideas would be helpful. Thanks.

Since small files work and big ones fail, these might be your problem:

- Your PHP script just takes too much time and finally gets stopped by
your server. Note, that PHP scripts have a predefined amount of time,
they
need to finish processing a request.

- Your PHP script probably isn't allows to upload files bigger than xxx
KByte.

Both properties are part of your php.ini settings. Review the php.ini
and probably
add more seconds or KBytes.

In case you'd like redefine a php.ini setting from within a PHP file,
have a look here: http://www.php.net/ini_set

 

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

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