Tp5 automatically uploads pictures to the server

how to upload jpg format images of d disk under windows to the server in batch via thinkphp

Mar.23,2021

write a script. The general idea is to get all the files in a directory, traverse them and remove the unnecessary ones, and then upload them!


  1. iterate through all .jpg files
  2. use curl to automatically submit according to the result of traversal
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2c0a4-2baf6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2c0a4-2baf6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?