When you run php code that uses curl from the command line, curl requests are not returned (just empty, there are no errors). As I understand it, this is due to the fact that the command line is not endowed with browser properties and requests have nowhere to return. But on the other hand, if I, for example, use VBA (XMLHTTPObject) in excel for the same purpose, then requests are returned, i.e. It does not affect here - the request has left the browser or not ...

What solution then should be? How to run such a script in the background?

    1 answer 1

    Curl is not related to the browser, I think you save the result of the curl to a file, and the path to the file is relative. Try to specify the full path to the file.