How Can I Upload File Greater Than 2MB [PHP]

Status
Not open for further replies.

Ahmed Nawaz

OMG Member
Joined
Nov 25, 2010
Messages
24
My Server Does Not Allow Upload A File Greater Than 2MB From PHP Else It Allows Unlimited File Size Unlimited Files Size...
I Am Using A File Uploading Script & By From That Script I Can Upload Any Size File
But From Xenforo I Can upload max 2mb file...
Is There any Mod Which Allow Me To Upload A File Greater Than 2mb without changing Server PHP Config File???
 

Hescominsoon

OMG Member
Joined
Mar 22, 2010
Messages
103
nopers. if php won't let you do more than 2 megs you aren't going to do it using any kind of php driven web interface. You'll have to mod the php config file.
 

Ahmed Nawaz

OMG Member
Joined
Nov 25, 2010
Messages
24
nopers. if php won't let you do more than 2 megs you aren't going to do it using any kind of php driven web interface. You'll have to mod the php config file.
But i am uploading bigger files with one file hostibg script.???
 

Hescominsoon

OMG Member
Joined
Mar 22, 2010
Messages
103
if you are using another script it's probably not using the php section of apache and therefore youa ren't hitting the php limits.
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,189
Try making an .htaccess file with:
Code:
php_value upload_max_filesize 10M
And then check with phpinfo if it has changed.
 

Ahmed Nawaz

OMG Member
Joined
Nov 25, 2010
Messages
24
Try making an .htaccess file with:
Code:
php_value upload_max_filesize 10M
And then check with phpinfo if it has changed.
I Have Tried But Following Error..
Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,  webmaster@s.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
.htaccess contains
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data|js|styles|install) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
php_value upload_max_filesize 10M
 
Status
Not open for further replies.
Top