/    Sign up×
Community /Pin to ProfileBookmark

Server Side printing with PHP

We currently have an internal web application to process production orders. We are in need of some ‘automated’ printing. When an order is created/processed, it will need to automatically print out a label to one of the printers in the warehouse. Sometimes each order will print 10-20 labels. The existing web application is MySQL and PHP based.

Does anyone know of a way to have the server automatically print labels without prompting the user?

I have looked into the [URL=http://us3.php.net/printer]php_printer.dll[/URL]… but have had no luck with the installation. The server is Windows 2000 running Apache web server.

Any help or thoughts would be appreciated.

to post a comment
PHP

9 Comments(s)

Copy linkTweet thisAlerts:
@CompGeek01Jul 26.2005 — No luck with the extension? Like...it's not loading? You'll have to install then restart the server to load the functions.

What problems with installation are you having?
Copy linkTweet thisAlerts:
@JerryJrauthorJul 26.2005 — Thanks for the quick reply.

The original settings in the php.ini settings were:

extension_dir = ./ ; directory in which the loadable extensions

;extension=php_printer.dll

I changed them to:

extension_dir = c:phpextensions ; directory in which the loadable extensions

extension=php_printer.dll

I tried restarting apache, but failed. So I restarted the server and apache did not start once again. I then changed the settings back to the original and restarted once more and apache was back up.

That about puts me where I am at right now.
Copy linkTweet thisAlerts:
@CompGeek01Jul 26.2005 — Did you get any kind of error message when you tried to start up the server?

try changing the line extension_dir to:

extension_dir = c:/php/extensions/
Copy linkTweet thisAlerts:
@JerryJrauthorJul 26.2005 — Error message from yesterday was:

PHP Warning: Unable to load dynamic library 'c:phpextensions/php_printer.dll' - The specified module could not be found.

in Unknown on line 0

** Just found the error log **

I will try your settings from the previous post.
Copy linkTweet thisAlerts:
@CompGeek01Jul 26.2005 — Ok, with the error log this should work:

extension_dir = c:/php/extensions

make sure that the slashes are forward slashes and there is no trailing slash...it seems to make one for you/
Copy linkTweet thisAlerts:
@JerryJrauthorJul 26.2005 — Well that was a no go. Apache did not give an error message this time, and did not start once again. I made the changes back and restarted once again. The server came back up.
Copy linkTweet thisAlerts:
@CompGeek01Jul 26.2005 — Nothing in the error log at all? hm.
Copy linkTweet thisAlerts:
@JerryJrauthorJul 26.2005 — Yeah, nothing at all. And the web server was not responding from my browser. Its really odd. I did update the php_printer.dll file also. The exising file was 36kb and the new one is 48kb. Not sure if that could make a difference. I figured the one that was there was outdated.
Copy linkTweet thisAlerts:
@JerryJrauthorJul 26.2005 — Does anyone know of another way to accomplish server side printing besides with php_printer.php?
×

Success!

Help @JerryJr spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...