On 4/24/06, David Killen <[EMAIL PROTECTED]> wrote:
> Is there a maximum size for a variable in PHP. A client of mine is
> having problems working with a file of around 4Mb. Not really being a
> php developer I cannot really answer him. To quote him:
>
> We are not uploading excel from ftp. We are reading excel file which is
> about 4 MB. In php settings maximum size of any variable is set to 2 MB so
> this setting has to change. As any file reading in a variable will only read
> up to 2 MB and then it will stop.
>
> I wasn't aware of any setting that allows you to change the max variable
> size. Can anyone shed any light on this?

memory_limit will affect this.

http://www.php.net/manual/en/ini.core.php and
http://www.php.net/manual/en/ini.php#ini.list will show you how to
change the limit.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to