Solved

Printer

Posted on 2001-08-20
4
571 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to use 2 ON statements in inner join 3 44
Find RGB colors from a screen. 2 41
Group By Function Required in PDF Output 21 65
Delete image(s) associated with record(s) 16 46
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

739 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