Skip to content
Advertisement

Tag: wget

PHP: Save the file returned by wget with file_put_content

I’m replacing a function that downloads a file with cURL and returns its content in a variable, then outside the function the code writes this variable to a file with file_put_content. Because of requirements of the system I have to use wget now, so I’m using something like this: But when I later use file_put_content to save the content of

Advertisement