View Single Post
  #2   (View Single Post)  
Old 21st September 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Dutchman living in the UK
Posts: 2,199
Default

It's a PHP setting in /usr/local/etc/php.ini
Code:
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

; Maximum size of POST data that PHP will accept.
post_max_size = 8M
It's also possible limits are set in login.conf, but the php.ini is more common.

There are two things you can do:
1) Change the php.ini file if you have access to it.
2) Don't read the entire file at once, for example:

Code:
$fp = fopen('myfile.csv', 'r');
while ($line = fgets($fp))
{
  print $line;
}
fclose($fp)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote