FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP upload Max





moejoe
Hey.

I recently made an php uploader.

But im having difficulties configuring it.

I changed the PHP.ini to '10M' and changed the MAX_FILE_SIZE in the HTML to 1000000 (10M).

But i Still get an Error Value of '1' when i upload a file more than 2MB.

Quote:
Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini


Which is stupid because i've modded my PHP.ini.

Everything is set correctly. Like the Upload is "On" and the Temp DIR is set to default.

Any recommendations?

Thanks.
MrBlueSky
moejoe wrote:


I changed the PHP.ini to '10M' and changed the MAX_FILE_SIZE in the HTML to 1000000 (10M).



Maybe its just a typo in your post, but 1000000 is 1 Mb, not 10 Mb.
moejoe
Oppz,

Yes it is a typo.
Sorry.
mathiaus
Have you checked using phpinfo(); that your change is what is being used?
moejoe
Hey,

Good Point:

Quote:
File Uploads | upload_max_filesize | Maximum allowed size for uploaded files. | 2M


Thats a quote from my PHP config page on CPANEL.

I've edited the PHP.ini...

Why hasn't it changed?

Thanks.
mathiaus
Your not trying to do this on Frihost right?
moejoe
Nope this is a different host.
moejoe
I figured it out!

I made a new php.ini and only put:

Code:
upload_max_filesize = 10M
post_max_size = 10M


Then i uploaded it to my folder that had the upload script.

And Very Happy Very Happy Very Happy Very Happy Very Happy

It worked!

Thanks for your help guys.
Related topics
How to build simple PHP upload form
I need a php upload script, NEEDED BADLY
php upload issue
[PHP] Upload de arquivos
php upload problems
php upload problem
Build an online dictionary by PHP/MySQL
Online file storage
Free Upload Space for your personal files list!!!
[RESOLVED] php-nuke error?
Php upload scripti arýyorum..
is there a good upload/download script?
HUGE FREE LINK EXCHANGE!!
Probleme hébergement
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.