Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printer_open() gives fatal error ... Please help!

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
I just installed WAMP on a WIN 2003 R2 running in a DELL PowerEdge 1950 Server. I managed to get all services to work fine but my PHP script where printing is done fails with a fatal error:

Fatal error: Call to undefined function printer_open() in(....)

After some digging I found that this was due to php_printer.dll not being bundled and so I downloaded a zip file with a number of .dll binaries, copied the php_printer.dll to my "ext" directory and edited my php.ini file.

I then rebooted - Found that the extension is loaded but still get the fatal error. What am I missing?

PHP 5.4.3
Apache 2.2.22

Thank you all in advance for your assistance!


--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
have you loaded, compiled and installed the pecl printer extension?
 
I do not have a compiler - Truth is that I have never compiled anything in windows since Clipper III and Clipper had its own compiler (goes back to 1988/89)

Where can I find the source? It is not here
Of course, can you suggest a compiler?

Thanks!



--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
can you post or link to a phpinfo() page?

also I don't think that the windows binaries were ever recompiled for php 5.4.3 as the release only lasted a few weeks. so whatever binaries you have downloaded may well not work.

I suggest that you update your php install to 5.4.8 which is the latest current release and for which binaries have been created for extensions on windows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top