/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // save an url to a local pdf using pdfmyurl.com service public function url2pdf($url,$pdffilename) { return $this->copyFile("http://pdfmyurl.com?url=".urlencode( str_replace("http://","",$url) ), $pdffilename); } // save an url to a local jpg thumb using open.thumbshots.com service public function url2thumb($url,$thumbfilename) { return $this->copyFile("http://open.thumbshots.org/image.pxf?url=".urlencode( $url ), $thumbfilename); } ?>