[solved]ini_set problem on windows server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pravin_bluebird
Forum Newbie
Posts: 6
Joined: Thu Sep 27, 2007 3:58 am

[solved]ini_set problem on windows server

Post by pravin_bluebird »

Hello all,
I want to upload around 10 mb file size....
and i am using windows server

i write the following code

Code: Select all

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
Last edited by pravin_bluebird on Fri Aug 22, 2008 5:20 am, edited 1 time in total.
pravin_bluebird
Forum Newbie
Posts: 6
Joined: Thu Sep 27, 2007 3:58 am

[solved] ini_set problem on windows server

Post by pravin_bluebird »

solved using htaccess

actually i thought htaccess is not supported by windows server...But it works on my server...
Regards
Post Reply