Image upload issue.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Aristona
Forum Commoner
Posts: 33
Joined: Thu Dec 02, 2010 8:14 am

Image upload issue.

Post by Aristona »

Hello,

I upload my files with SimpleImage class.
http://www.white-hat-web-design.co.uk/b ... -with-php/

The problem is, if the image size is around 3mb, it doesn't upload it.
Is it have something to do with PHP execution time or something else?

I should allow up to 30m files, because the company I sold the website for is going to upload their renders.

Ps. max_upload_size is set to 8m in PHP.ini
greip
Forum Commoner
Posts: 39
Joined: Tue Aug 23, 2011 8:23 am
Location: Oslo, Norway

Re: Image upload issue.

Post by greip »

You should check the max_execution_time value set in your php.ini file. You can increase the execution time limit for a script using the set_time_limit function: http://php.net/manual/en/function.set-time-limit.php
Aristona
Forum Commoner
Posts: 33
Joined: Thu Dec 02, 2010 8:14 am

Re: Image upload issue.

Post by Aristona »

Editing max execution time is disabled on hosting. They don't allow you to change some settings in php.ini

Is there any way to solve this? I want to handle things in PHP since I can log things and see what my customers does.

If not (and if this is going to be a better solution) I'll give them a FTP account, where they can connect via FTP and upload their files into the folders I designed.
Post Reply