I need help downloading an .exe file and convert it to .zip (PS: I don't want to compress it in .zip, I want to convert it in .zip).
example:
http://domain.com/exe?response=redirect
It will give me a .exe file and I want to convert it to .zip and store in my server.
I have tried this code :
<?php
$url = 'http://domain.com/exe?response=redirect';
$img = '/home/username/public_html/file.zip';
file_put_contents($img, file_get_contents($url));
?>
But it is not working properly. Can anyone help me to do this? Thanks in advance.