fork(2) download
  1. <?php
  2.  
  3.  
  4. $imurl = "http://s...content-available-to-author-only...e.ru/images/img.jpeg";
  5.  
  6. $imurl_relative = str_replace('http://s...content-available-to-author-only...e.ru', '', $imurl);
  7.  
  8. echo $imurl."\n";
  9. echo $imurl_relative;
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
http://s...content-available-to-author-only...e.ru/images/img.jpeg
/images/img.jpeg