? Php?picture.all-index-right-pic0.jpg; If ($ Picture! None) {$ PSizefilesize ($ Picture); $ mysqlPicturefread (fopen ($ Picture, r), $ PSize); $ mysqlPicture can be saved to the database, of course, the field is a two-digit restoration operation, and the verification code implementation machine.
? Php $ Picture = './all-index-right-pic0.jpg'; If ($ Picture! = None) {$ PSize = filesize ($ Picture); $ mysqlPicture = fread (fopen ($ Picture, r), $ PSize); // you can save $ mysqlPicture to the database, of course, the field is a binary Restoration Operation // read out, and the verification code implementation machine.
$ Picture = './all-index-right-pic0.jpg ';
If ($ Picture! = "None "){
$ PSize = filesize ($ Picture );
$ MysqlPicture = fread (fopen ($ Picture, "r"), $ PSize );
// You can save $ mysqlPicture to the database. Of course, the field is in binary format.
// The Restoration Operation like reading is not much different from the implementation mechanism of the verification code.
Header ("Content-type: image/gif ");
Echo $ mysqlPicture;
} Else {
Echo "You did not upload any picture ";
}
?>