Tuesday, November 2, 2010

Uploading problem wmv or mp4 ...??????

Make these changes in your php.ini file


Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 500000M

;change maximum post value ,post_max
post_max =1000M


Some servers may not accept the above settings. In that case, htaccess comes to our rescue.
Create a file named “.htaccess” without quotes and add the below lines
php_value upload_max_filesize 10M
php_value post_max_size 20M
These lines does the same functionality as the above.

2 comments: