** How to Access the Support Description of the Binary & PHP Host in MySQL.
How to access binary files in MySQL how to access binary files, first create test table testtable create table testtable (ID INT (5) Not Null Auto_Increment Primary Key, FileName Char (255), Data Longblob); In the table Php mysql_connect ("localhost", "root", "password"); // Connect the database mysql_select_db ("Database"); // Select Database $ filename = "" // Here to fill in binary file name $ data = addslashes (Font (FOPEN ($ FileName, "R"), FileSize ($ filename))); // Open file and standardize data storage variable $ data $ results = mysql_query ("Insert Into TestTable (FileName, DATA) VALUES ('$ filename', '$ data') "); // Data Insert MySQL_Close () in the database TEST table ();> Retrieve the file from the table PHP IF ($ ID) {mysql_connect (" LocalHost, "root"; mysql_select_db ("database"); $ filename = "" // Here fill in binary file name $ query = "select data from testtable where filename = $ filename"; $ results = MySQL_Query; $ data = mysql_result ($ Result, 0, "DATA");?> Hereby, PHP generally only supports less than 2m file, if you want to access a file greater than 2m, then Enter the system settings. If you have already installed locally, you can start to publish your website, I can recommend some space that meet your program requirements, and now recommends the space for the time interconnection (now.Net.cn).