note 56002 rejected from ref.printer by mazzanet
| From: | mazzanet@php.net | Date: | Sat, 20 Aug 2005 12:22:22 +0000 |
| Subject: | note 56002 rejected from ref.printer by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93948@lists.php.net to get a copy of this message | ||
Note Submitter: b dot mangiapane at tin dot it
----
Hi,
I've installed PHP 5.0.5 into my PC with Windows XP Pro, and I use it with IIS.
When I call this code:
<?php
$handle = printer_open("hp deskjet 640c series");
echo $handle;
printer_start_doc($handle);
printer_start_page($handle);
$font = printer_create_font("Arial", 148, 76, PRINTER_FW_MEDIUM, false, false, false,
-50);
printer_select_font($handle, $font);
printer_draw_text($handle, "PHP is simply cool", 40, 40);
printer_delete_font($font);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>
the system wait and not print immediately. Print it after 30 seconds and response with follow:
Fatal error: Maximum execution time of 30 seconds exceeded in D:\Inetpub\webs\mydir\myfile.php on
line 14
You have the solution?
Thanks