

1- How can I display the php.ini max. file upload limit on my page?
<?php echo ini_get('upload_max_filesize'); ?>
2- Is there a way to change that limit without having to directly accessing the php.ini, or using htaccess?
Code:<?php echo ini_get('upload_max_filesize'); ?>
I don't think so. You could try ini_set(), but I think that by the time the script executes it is too late.
There are other factors which influence the maximum file size that can be uploaded, such as the "post_max_size" setting, and also settings in the web server which may limit maximum upload sizes.
You can use this code snippet
Typically, you can only do this if PHP is run as CGI/FastCGI, not mod_php - if the setting you're trying to change is PHP_INI_PERDIR/PHP_INI_ALL (and SAPI = mod_php) then you can use .htaccess.You can typically put a php.ini file into the directory you wish to change settigns for, only putting in the elements that you need to change. Also if changing the max upload size, change the max post size as well.