Menu
I updated my the PHP.ini in Windows folder that it can accepts larger uploaded file size, it workd fine on my local machine, how can i configure it on the server?!
[code=php]ini_set("post_max_size", "75M");
ini_set("upload_max_filesize", "25M");
ini_set("max_execution_time", "90");[/code]
Looks like if your PHP version is 4.2.3 or older, you can modify in the script with the ini_set() function. On any newer version, only by modification of php.ini, .htaccess, or httpd.conf.[/QUOTE]
well is that correct syntax?!
[code=php]ini_set("post_max_size", "75M");
ini_set("upload_max_filesize", "25M");
ini_set("max_execution_time", "90");[/code]
and if i changed that in my page, will it change the ini once the page is executed?![/QUOTE]
[code=html]php_admin_value post_max_size 75M
php_admin_value upload_max_filesize 25M [/code]
I'm not sure why it may be different before 4.2.3 ...[/QUOTE]
<i>
</i>+---------------------+---------+----------------+------------------------------+
| Name | Default | Changeable | Changelog |
+---------------------+---------+----------------+------------------------------+
| upload_max_filesize | "2M" | PHP_INI_PERDIR | PHP_INI_ALL in PHP <= 4.2.3. |
+---------------------+---------+----------------+------------------------------+
[code=html]php_admin_value post_max_size 75M
php_admin_value upload_max_filesize 25M
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.islam-christianity.org
AuthUserFile /home/galeb/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/galeb/public_html/_vti_pvt/service.grp[/code]
[code=php]ini_set("post_max_size", "75M");
ini_set("upload_max_filesize", "25M");
ini_set("max_execution_time", "90"); [/code]
[code=html]php_value post_max_size 75M
php_value upload_max_filesize 25M
php_value max_execution_time 90
[/code]
And didn't you see that they are not the same lines?[URL=http://www.webdeveloper.com/forum/showpost.php?p=463518&postcount=11]http://www.webdeveloper.com/forum/showpost.php?p=463518&postcount=11[/URL]
well didnt you see that post, that's after i added these lines in the place you told me to.[/QUOTE]
[code=html]php_value post_max_size 75M
php_value upload_max_filesize 25M
php_value max_execution_time 90[/code]
I then ran a script with the following contents:[code=php]<?php
print ini_get('post_max_size').
' - '.ini_get('upload_max_filesize').
' - '.ini_get('max_execution_time');
?>[/code]
and it prints:[code=html]75M - 25M - 90[/code]
If that is not the result you are getting then you have an error elsewhere.[code=php]ini_set ("post_max_size", "20M");
ini_set ("upload_max_filesize", "25M");
ini_set ("max_execution_time", "90");[/code]
0.1.9 — BETA 5.18