PHP Error 1

Get help on web editors (Frontpage, Dreamweaver) and web languages (HTML, ASP, PHP).
Post Reply
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

PHP Error 1

Post by DarkRanger »

Hi,

I receive an Error code 1 when I try upload a file. Now I know, from php.net/manual/, that this error is thrown when the file size of the uploaded file exceeds the upload_max_filesize directive specified in php.ini. I went over to Webmin -> Others -> PHP Configuration and specified the max upload size to be 10MB (upload_max_filesize = 10M) and changed, for good measure the post_max_size to 10MB as well.

Restarted the server and retried uploading a 2.5MB file, and it still throws an error 1.

Am I missing something?
Image
azizarnold
Registered User
Posts: 2
Joined: 05 Jul 2011, 13:20
Location: Cape Town
Contact:

Re: PHP Error 1

Post by azizarnold »

Hi,

Remember that memory_limit also affects the size of the file that can be uploaded.

Look at the following link for more information: http://php.net/manual/en/ini.core.php

Hope this helps
Post Reply