Good day!
I set up integration with 1C and the following problem arose:
I am processing a zip file with 1C. I have to read the file from him to process and give an answer.
$zip = new ZipArchive(); $zip_status = $zip->open(file_get_contents('php://input')); In php: // input comes say file.
But when I try to open it with $zip->open then it returns false, ie it could not be opened.
Maybe I somehow do not process the receipt of the archive? Who will tell you how to do it right?
PSYS: When the xml file_get_contents('php://input') file came to file_get_contents('php://input') worked as it should and received the contents of the file.
$zip->open('php://input')- Naumov$zip->openseems to return an error code to indicate which kind of error - Bookin