ini_set Problem

ini_set Problem

am 22.08.2008 10:20:46 von p4pravin

------=_NextPart_000_0001_01C9045E.170091C0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hello all,

I want to upload around 10 mb file size....

and i am using windows server



i write the following code



ini_set("memory_limit","25M");

ini_set("post_max_size","50M");

ini_set("upload_max_filesize","20M");



set_time_limit(0);



and i also specifiy MAX_FILE_SIZE hidden variable in Form ....



but it give me UPLOAD_ERR_INI_SIZE error

means File size exceeded php.ini value...



I do not have writes to change the php.ini...



So i must have to set it by ini_set function........but its not
working......



Any idea whats going wrong and how can i solve this problem.....



regards


------=_NextPart_000_0001_01C9045E.170091C0--

Re: ini_set Problem

am 22.08.2008 15:06:13 von James Crow

On Fri, 2008-08-22 at 13:50 +0530, p4pravin wrote:
> Hello all,
>
> I want to upload around 10 mb file size....
>
> and i am using windows server
>
>
>
> i write the following code
>
>
>
> ini_set("memory_limit","25M");
>
> ini_set("post_max_size","50M");
>
> ini_set("upload_max_filesize","20M");
>
>
>
> set_time_limit(0);
>
>
>
> and i also specifiy MAX_FILE_SIZE hidden variable in Form ....
>
>
>
> but it give me UPLOAD_ERR_INI_SIZE error
>
> means File size exceeded php.ini value...
>
>
>
> I do not have writes to change the php.ini...
>
>
>
> So i must have to set it by ini_set function........but its not
> working......
>
>
>
> Any idea whats going wrong and how can i solve this problem.....
>
>
>
> regards
>

You could try to execute a phpinfo() call after the ini_set calls. That
should print out all the php configuration so you can see if things are
getting set correctly.

Cheers,
James



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