Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- The host is
- $this->url= "/htmldoc/pdf-o-matic.php";
- $this->host="www.easysw.com";
- */
- function _convertEASYW()
- {
- //http://www.easysw.com/htmldoc/pdf-o-matic.php
- $this->url= "/htmldoc/pdf-o-matic.php";
- $this->host="www.easysw.com";
- $s_POST_DATA = "URL=".urlencode($this->htmlurl);
- $s_POST_DATA .= "&FORMAT=.pdf";
- $pdfdata = @file_get_contents("http://".$this->host.$this->url."?".$s_POST_DATA);
- if(!empty($pdfdata))
- {
- if(!empty($this->saveFile))
- $this->write_file($this->saveFile,$pdfdata);
- if(!empty($this->downloadFile))
- $this->download_file($pdfdata);
- return true;
- }
- $pdfdata = $this->_sendRequest($s_POST_DATA);
- if($pdfdata===false) return false;
- if(!empty($this->saveFile))
- $this->write_file($this->saveFile,$pdfdata);
- if(!empty($this->downloadFile))
- $this->download_file($pdfdata);
- return $pdfdata;
- }
Advertisement
Add Comment
Please, Sign In to add comment