Hello friends,
I am trying to up my upload limit on my share hosting.
I don’t have access to php.ini and I tried adding php_value upload_max_filesize 10M to an .htaccess file but it made my directory disappear when viewing via the browser.
Any help?
See it here: http://httpd.apache.org/docs/1.3/misc/FAQ.html#indexes
<Directory /path/to/directory>
Options +Indexes
</Directory>
Does your site work again when if you remove the line with the upload_max_filesize?
If so, then setting PHP values in htaccess isn’t allowed, and you won’t be able to change your max upload size…
dahouse:
I’ve already contacted him about the changing php.ini and got denied.
When I used the .htacess file, my directory disappeared when accessing it via the browser. This is what’s in my .htaccess file…
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\\.php|images|css|js|robots\\.txt|favicon\\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
php_value upload_max_filesize 10M
Is that OK? What can I do to not make the folder disappear?
I’ve already contacted him about the changing php.ini and got denied.
When I used the .htacess file, my directory disappeared when accessing it via the browser. This is what’s in my .htaccess file…
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\\.php|images|css|js|robots\\.txt|favicon\\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
php_value upload_max_filesize 10M
Is that OK? What can I do to not make the folder disappear?
If you want to increase your uplaod_max_filesize but you can’t do that using php.ini or .htaccess, you need to contact your host. You cannot update it in any other manner, unfortunately.