fork download
  1. <?php
  2.  
  3. $srcName = "from/data.gz";
  4. $dstName = "to/stuff.xml";
  5. $command = 'gunzip -c '.$srcName.' > '.$dstName;
  6. $escapedCommand = escapeshellcmd($command);
  7.  
  8. echo $escapedCommand;
Success #stdin #stdout 0.01s 20592KB
stdin
Standard input is empty
stdout
gunzip -c from/data.gz \> to/stuff.xml