PHP cURL, writing to file

后端 未结 6 972
隐瞒了意图╮
隐瞒了意图╮ 2020-12-29 09:12

I want to try connecting to a remote file and writing the output from there to a local file, this is my function:

function get_remote_file_to_cache()
{

$the         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 09:37

    The touch() function doesn't do anything to the contents of the file. It just updates the modification time. Look at the file_put_contents() function.

提交回复
热议问题