Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Printer

Posted on 2001-08-20
4
Medium Priority
?
588 Views
Last Modified: 2008-02-01
Dear Friend. I come I asked for an aid to it regarding the use of the PHP, have you doubt how much its use regarding the commands of Printing. I am trying to develop an application in PHP, where I choose the data necessary and sending for the printer, only that exactly following the manual of the PHP that consists in the SITE, he is not possivel to execute due to an error of Function it informs to me that the function is indefinite. follows the error below acknowledgment ..
 
Fatal error: Call to undefined function: printer_open() in /usr/local/apache/htdocs/daniel/Jobs/pagina6.php4 on line 8
 
 
The Example that I use follows below.

 
<html>
<read>
<title></title>
</read>
<body>
<?php
  $print = printer_open("LPT1");
  $print = printer_open();
  printer_write($print, "Teste de impressora");
  printer_write($print, "Teste de impressora");
  printer_write($print, "Teste de impressora");
  printer_write($print, "Teste de impressora");
  printer_close($print);
?>
 </body>
</html>
 
As the manual, would have that to print me the word " Test of printer ". By chance I will have that to indicate to the program some directory where would consist such libraries so that it can make the printing process.? It would like that you they helped me in this doubt. Since already I am thankful.
Yours truly.
 
Daniel
0
Comment
Question by:d_a_l
3 Comments
 

Author Comment

by:d_a_l
ID: 6406343
I am initiating in the PHP, I have things that still I have doubts, I would be grateful if they could help me. Yours truly Daniel  
0
 
LVL 8

Accepted Solution

by:
us111 earned 200 total points
ID: 6406640
enable it into your php.ini
note that these functions are only available under Windows 9.x,ME,NT4 and win2000
0
 
LVL 5

Expert Comment

by:LornaJane
ID: 9571638
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
closed and the answer from us111 accepted
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

LornaJane
EE Cleanup Volunteer
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question