note 56002 added to ref.printer
| From: | b dot mangiapane at tin dot it | Date: | Sat, 20 Aug 2005 12:04:35 +0000 |
| Subject: | note 56002 added to ref.printer | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93947@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/ref.printer.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56002
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56002&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56002&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56002&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56002&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56002&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56002&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56002&report=yes
Search -- http://master.php.net/manage/user-notes.php