Wednesday, 6 January 2016

When file upload is working on localhost but not on server

 When file upload is working on localhost but not on server

  Mean getting file upload error


Reason: your mbstring was not enabled on your /home/phpclusters/public_html/php.ini file.

Solution:
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
extension = "mbstring.so"         //enable mb string

memory_limit = 64M;
max_execution_time = 30;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 172800;
allow_url_fopen = on;

No comments:

Post a Comment