How to run wget from php so that output gets displayed in the browser window?

后端 未结 4 2173
南方客
南方客 2021-02-08 05:47

How to run wget from php so that output gets displayed in the browser window?

4条回答
  •  旧巷少年郎
    2021-02-08 05:55

    Don't try that on most serversr, they should be blocked from running commands like wget! file_get_contents has just replaced crappy iframe my client insisted on having with this and a quick

    ]+\>/i", " ", $content); 
    $content = preg_replace("/]+\>/i", " ", $content);  
    $echo $content;
    
    ?>
    

    later to alter the font, images and remove images and iframes etc.... and my site is looking better than ever! (Yes I know my bit of the code isn't brilliant but it's a big improvement for me and removes the annoying formatting!)

提交回复
热议问题