php “glob” and data-deduplication?

前端 未结 4 786
逝去的感伤
逝去的感伤 2021-02-12 17:14

I have a php-application which is (per request) scanning for the existance of some files. (on a network share)

I\'m using glob for this, cause usually i jus

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-12 18:05

    I'm not sure if this is what you're looking for but i use scandir() to list all the files in a directory, then you can excecute any command on them once you know the name. It will work on open files as well

    PHP scandir documentation source

提交回复
热议问题