Mysql
 sql >> Teknologi Basis Data >  >> RDS >> Mysql

Unggah banyak file ke server dengan php tidak mengunggah ke server semua file

move_uploaded_file mengembalikan true jika berhasil, sisanya jika tidak pernah tercapai.Coba sesuatu seperti ini:

$error = false;

if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))  
{   
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";  
} else $error = true;

if(move_uploaded_file($_FILES['photo1']['tmp_name'], $target1))  
{   
echo "The 2 file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";  
} else $error = true; 

if(move_uploaded_file($_FILES['photo2']['tmp_name'], $target2))  
{   
echo "The 3 file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";  
} else $error = true;

if($error)
   echo "Sorry, there was a problem uploading your file.";



  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. String koneksi SqlAlchemy

  2. konkurensi transaksi mysql innodb

  3. Penanda Leaflet yang mengidentifikasi secara unik

  4. Gabung bersyarat SQL server

  5. x entri blog terakhir - tetapi hanya sekali per pengguna