This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
urapidflow:file_preprocess [2010/03/18 04:13] unirgy created |
urapidflow:file_preprocess [2011/07/06 19:11] (current) unirgy |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <file php urapidflow.php> | ||
+ | <?php | ||
+ | $targetDir = ' | ||
+ | |||
+ | // initialize Magento environment | ||
+ | include_once ' | ||
+ | Mage:: | ||
+ | |||
+ | // download from http location | ||
+ | $res = @copy(' | ||
+ | if ($res!==true) { | ||
+ | echo "ERROR downloading file"; | ||
+ | exit; | ||
+ | } | ||
+ | |||
+ | // unpack the archive | ||
+ | $zip = new ZipArchive(); | ||
+ | $res = $zip-> | ||
+ | if ($res!==true) { | ||
+ | echo "ERROR unpacking archive"; | ||
+ | exit; | ||
+ | } | ||
+ | $zip-> | ||
+ | $zip-> | ||
+ | |||
+ | // run the profile. the profile should be pointing to the file in the archive | ||
+ | Mage:: | ||
+ | </ |