Solved

Printer

Posted on 2001-08-20
4
577 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 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 50 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

636 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