Return to Snippet

Revision: 35570
at November 10, 2010 12:19 by stamba


Initial Code
<?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);
	}
?>

Initial URL

                                

Initial Description

                                

Initial Title
Save as PDF & Thumb

Initial Tags

                                

Initial Language
PHP