Are rename() and unlink() asynchronous functions?

后端 未结 4 804
萌比男神i
萌比男神i 2021-01-22 09:37

I have strong reason to believe that both functions rename() and unlink() are asynchronous, which, from my understanding, means that when the functions are called, the code belo

4条回答
  •  不要未来只要你来
    2021-01-22 10:11

    To use any file operation you are required to use the $_SERVER["DOCUMENT_ROOT"] to make that work. In case you wont do it.. the real operation wont work properly. Also in case you are using the Linux Server then you will be required to set the permissions for the folders in which you want to perform the file operation.

    And mind it both the operations are synchronous they are not asynchronous. It also depends on the type of the server or the OS that you are using.

提交回复
热议问题