473,608 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP priner function question(printe r 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=prin ter_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 1485

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

Similar topics

12
2392
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
107774
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 languages, but I'm a serious newbie when it comes to anything sounding like javascript. I have searched the forums and found some code that (I think) will do exactly what I am looking for. Unfortunatelly, I cannot get it to work and was hoping...
0
1095
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: /////////////////////////////////////////////////////////////////////////////////////////////// //VB.NET: Public Declare Function TestFunc Lib "test.dll" () As MYSTRUCT
2
5770
by: Jeff | last post by:
/* -------------------------------------------------------------------------- Hello, I was experimenting with class templates and specializing member functions and came across a simple problem which I can't figure out. I have a simple class C with 2 template member objects, and a function print() that prints the value of these objects. I defined a specialization of print() for C<string, char> which is called correctly. Then I wanted...
6
2675
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 were using without issue previous to the switch: 'Start Word and create a new doc from the template Set objWord = CreateObject("Word.Basic") objWord.AppMaximize "Microsoft Word", 1 objWord.FileNew Template:=StrTemplPath & "letter.dot"
4
2356
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 which I mean here. Just for a moment, let's just take one definition for one of the
5
1500
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 IO.FileStream("csvstocks.txt", IO.FileMode.Open)) row = 0 Do sLine = fstream.ReadLine
3
3479
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 Printer - When a specified document is printed (perhaps it can be identified by the name), add a signature at the end of the document. This signature can be any type of digital image (gif, jpg, tiff, etc).
0
1143
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 this print button is clicked, it should open a popup window which is the same as 2.ascx except the header, footer and some unnecessary controls in the 2.ascx. Question: 1. what's the best way to handle it?
0
8010
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8501
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8483
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6820
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6015
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3967
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4030
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1336
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.