PHP implements file uploading to a specified folder, and the file path or name is stored in the database. How to achieve this?
2018-09-26 01:40:34
0
2
1089

php uploads files to a specified folder and stores the file path or name in the database. How to achieve this?


reply all (1)
神沐

If the database does not have a table, create a table, and then add an operation to add the file path or name to the database when uploading, and then just like this

1537955682(1).jpg

  • reply Is there any actual case? I will build a file transfer management system.
    author 2018-09-26 18:04:49
  • reply You can write a simple one yourself, which only has the file upload function, and then the database only stores one path. It is also very fast to write a test locally.
    神沐 author 2018-09-26 18:08:23
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!