Increase file upload size but cannot locate/access php.ini -
i'm testing file uploading page etc i'm working on. chose largish file @ random , received:
request entity large
the requested resource /admin.php not allow request data post requests, or amount of data provided in request exceeds capacity limit.
as error message. brief google led changing values in php.ini can't locate or access it.
the site hosted on free site 000.webhosting.org - i'm guessing have restricted somehow. there workaround?
create .htaccess document , put in document root directory. inside, place:
php_value upload_max_filesize 10m
source: http://www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/
honestly, i've never tried this, appears need.
edit:
here's else found, can try: ini_set("upload_max_filesize", "xm");
x number , m signifies megabytes. i'm not sure if works versions, it's listed being editable on php website (http://www.php.net/manual/en/ini.list.php).
Comments
Post a Comment