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
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.
touch()