File Upload with PHP

    Rating: ★★★★☆
    View: 189
    Download: 186
    Từ khóa:

    Main Characters:

    - Support upload many formatted 's files llink

                    case 'image/png': //png file
    		case 'image/gif': //gif file 
    		case 'image/jpeg': //jpeg file
    		case 'application/pdf': //PDF file
    		case 'application/msword': //ms word file
    		case 'application/vnd.ms-excel': //ms excel file
    		case 'application/x-zip-compressed': //zip file
    		case 'text/plain': //text file
    		case 'text/html': //html file

    - Support insert to database if you want:

    $dbconn = mysql_connect($MySql_hostname, $MySql_username, $MySql_password)or die("Unable to connect to MySQL");
    		mysql_select_db($MySql_databasename,$dbconn);
    		@mysql_query("INSERT INTO file_records (file_name, file_title, file_size, uploaded_date) VALUES ('$NewFileName', '$FileTitle',$FileSize,'$uploaded_date')");
    		mysql_close($dbconn);

     

    loading Đang tải...

    api được ưa chuộng