ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-windows
php-windows
[PHP-WIN] PHP_PRINTER.DLL prints from shell but not from web
by Robert other posts by this author
Oct 23 2006 1:45AM messages near this date
[PHP-WIN] Print on client shared printer doesn't work gives error | Re: [PHP-WIN] PHP_PRINTER.DLL prints from shell but not from web
Dear Friends, I thank you in advance if you give me 3 minutes of your time.

I've searched the php_printer PECL home page, but can't find it.

I want to report a bug

1) I can't find the home page for that pecl in the pecl web site. 
http://pecl.php.net/packages.php

 2) Before posting it I kindly ask you to tell me if you ever eard it 
before. Searching the whole internet I've found pople asking for it but no 
answers.

3) I tried working to overcome it, but no way.

the bug is this:

php 5.1.2 for windows
pecl extension php_printer.dll for 5.1.2 and also using the 5.1.6

1 SERVER
1 CLIENT sharing one PRINTER

the client shared printer is "mounted" on the server for a simple reason. My 
script printit.php SHOULD print on the client printer...

THE BUG ITSELF IS:
- if I open a command shell on the server and I type and run the following 
command "c:\> c:\program files\php\php.exe c:\www\printit.php" the print 
shoots correctly
- if I run it from the client browser it doesn't 
http://192.168.0.222/printit.php
- if I try to run the same script from within another script with shell_exec 
it doesn't work with the same error
- the returned error is PHP Warning:  printer_write(): couldn't allocate the 
printerjob [5] and obviously is reported for each printer_write code line.
- the apache is 2.0.55 and it is running on a windows xp pro
- the client is another windows xp pro where the printer is shared with 
permission for everybody and for guests (less security than this... is not 
possible)

Did you eard it? Any idea?

Thank you for any tip and answer.

Regards

Roberto - Italy 



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Robert
Niel Archer
Robert
Robert
Niel Archer

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved