473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

PHP priner function question(printer connected, but did not print out)

I'm trying to print a report to a printer directly using PHP printer
function.
I have code like the following one.
<?
if($handle=printer_open()){
print "Printer Connected<br>";
}
printer_write($handle, "Text to print");
printer_close($handle);
?>

I put the php_printer.dll into the extension folder and added the
printer extension line into the php.ini.

When I tested this code on a server with PHP Version 4.3.9, it worked
fine. When I moved the code to a server with PHP 5.1.1, the printer was
connected, but nothing printed out. I downloaded the php_printer.dll
for version 5.1.1 but nothing improved.

Does any one have adea about this problem? Thanks

Feb 20 '06 #1
0 1475

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Michael Foord | last post by:
Here's a little oddity with 'print' being a reserved word... >>> class thing: pass >>> something = thing() >>> something.print = 3 SyntaxError: invalid syntax >>> print something.__dict__...
1
by: Brian Hanson | last post by:
Hi, I am trying to write a javascript function that gets called from a within an asp.net application to print a pdf file(s) programmatically. I am a pretty experienced developer in several...
0
by: Peter Schmitz | last post by:
Hi, I'm trying to call a C++ function in a seperate DLL out of my VB.NET code like this: ///////////////////////////////////////////////////////////////////////////////////////////////...
2
by: Jeff | last post by:
/* -------------------------------------------------------------------------- Hello, I was experimenting with class templates and specializing member functions and came across a simple problem...
6
by: Ryan Muller | last post by:
My company just upgraded from Access 97 to Access 2003 today and we are having some issues in a database that generates a Word document from information selected in a form. Here is the code we...
4
by: Michael | last post by:
Hi, I'm having difficulty finding any previous discussion on this -- I keep finding people either having problems calling os.exec(lepev), or with using python's exec statement. Neither of...
5
by: RallyDSM | last post by:
Private Sub IntializeData() Dim arr() As String Dim row As Integer Dim sLine As String Dim StockData(row) As Stocks Dim fstream As IO.StreamReader = New IO.StreamReader(New...
3
by: george | last post by:
Hi group, I am new to this group and since I didnīt find anything on Internet related to my problem I wanted to know if anyone know or may help me. What I have to do is: - Monitor a Network...
0
by: =?Utf-8?B?RGFpc3k=?= | last post by:
Situation: 1. have one default.aspx file 2. inside default.aspx file, contains several usercontrol, .ascx file, e.g. 1.ascx, 2.ascx 3. in the 1.ascx file, there is a print button or link 4. when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.