Re: PHP Variables sizes
| From: | chris smith | Date: | Mon, 24 Apr 2006 03:53:40 +0000 |
| Subject: | Re: PHP Variables sizes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234606@lists.php.net to get a copy of this message | ||
On 4/24/06, David Killen <davek@hwy.com.au> 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/