Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-07-2005, 08:30 AM   #1
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Memory_limit in php.ini

I wrote a php script for upload of files and it works OK.

However, now I plan to tweak it to accept larger files (200M+), too, but somewhere I read that variable "memory_limit" in php.ini must exceed the size of the file to be uploaded, which would be a great restriction for me.

I doubt that there should be any such relation between these two values, as it would be rather clumsy (no large file uploads possible on a server that is short of RAM?), especially that the uploaded files seem to be temporarily stored on disk by php (in a temporary file in /tmp).

Could you confirm that the value of "memory_limit" in php.ini must really exceed the size of the file to be uploaded, and why?
If so, is there a workaround for web servers that are in short of RAM?

Last edited by J_Szucs; 02-07-2005 at 08:32 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
Upgraded PHP from 4.3.4 to 4.3.10 and now it won't read php.ini gregmcavoy Linux - Software 11 01-22-2005 12:16 PM
php: different mail server from php.ini rayds Programming 0 09-14-2004 03:48 AM
php.ini NW Otter Linux - Software 11 09-24-2003 08:17 PM
Where's php.ini? XxAndyxX Linux - General 1 06-14-2003 09:28 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration