我上传了不同的文档到一个文件夹,当我想把上传的文件存储在文件夹中,并在所有网页上显示时,如何写入和删除它们?
没有足够的代表来评论。所以,放弃一个答案。
假设您没有在数据库中保存文件名。
可以使用scandir()
你可以在这里阅读scandir()函数的手册
和删除你可以使用unlink()
你可以在这里阅读unlink()函数的手册
我上传了不同的文档到一个文件夹,当我想把上传的文件存储在文件夹中,并在所有网页上显示时,如何写入和删除它们?
没有足够的代表来评论。所以,放弃一个答案。
假设您没有在数据库中保存文件名。
可以使用scandir()
你可以在这里阅读scandir()函数的手册
和删除你可以使用unlink()
你可以在这里阅读unlink()函数的手册
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium