PHP Classes

printing url's

Recommend this page to a friend!

      PHP Google Cloud Print API  >  All threads  >  printing url's  >  (Un) Subscribe thread alerts  
Subject:printing url's
Summary:printing url's
Messages:1
Author:Dennis Freni
Date:2014-10-18 09:38:41
 

  1. printing url's   Reply   Report abuse  
Picture of Dennis Freni Dennis Freni - 2014-10-18 09:38:41
Hi,

I just have to say what a wonderful piece of code you made here!!!

I figured out how to send url's to the printer and I just wanted to share it with people who could use it...

IN GoogleCloudPrint.php -->

FIND:

$contents = fread($handle, filesize($filepath));

REPLACE WITH:

if($contenttype = 'text/html')
{
$contents = file_get_contents($filepath);
}else{
$contents = fread($handle, filesize($filepath));
}

Greets Dennis