Changing upload_max_filesize on PHP
Using below lines, we can set the upload_max_filesize at run time in php:
First of all you need to check current set upload_max_filesize:
<?php
echo "Upload max file zise = " . ini_get("upload_max_filesize") ;
?>
Now set the upload_max_filesize 200 MB:
<?php
ini_set('upload_max_filesize', '200MB');
?>
Now check the changed size:
<?php
echo "Upload max file zise = " . ini_get("upload_max_filesize") ;
?>
We can also get and set the post_max_size as per above example.
Comments
Post a Comment