PDA

View Full Version : php.ini file size


ThermoDust
10-26-2002, 11:16 AM
Is there any way to print the php.ini max upload size onto a page?

like if in the php.ini file it says
upload size= 10mb

then the page would print
Max upload 10mb

Any ideas?

iDxMan
10-26-2002, 12:20 PM
<?php

echo ini_get("upload_max_filesize");
?>

ThermoDust
10-26-2002, 12:26 PM
w0w thanks for the fast reply. :)

Uranium-235
10-28-2002, 10:37 PM
If you want to change it, go into .htaccess (usually in your root) and put


php_value upload_max_filesize 15M


*notice this will not work on all servers*

iDxMan
10-29-2002, 12:09 AM
note: if you do increase the upload size to something very large, also check out the max_post (or something like that). By default I believe its 8mb, so I think you may need to up it as well.