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 - NetBIOS prints, TCP/IP doesn't
by Robert other posts by this author
Oct 29 2006 1:14AM messages near this date
Re: [PHP-WIN] PHP_PRINTER.DLL - NetBIOS prints, TCP/IP doesn't | [PHP-WIN] Comunication between php and a window service
Hi you all,

I'm trying to print on clients printers. Now it works fine, but only using 
NetBIOS clients names in a LAN.

I mean that using the following sintax it does work fine

$printer = "\\\\"."CLIENTNAME"."\\"."PRINTERNAME";
$handle = printer_open($printer);

but suppose that CLIENTNAME ip is 192.168.0.15, well if I try printing using

$printer = "\\\\"."192.168.0.15"."\\"."PRINTERNAME";
$handle = printer_open($printer);

doesn't work and if you look @ apache errors.log file you understand that 
printer was not found.

If printing "via tcp" is not possible... how do I print on a remote site?

I tried a VPN connection form CLIENTNAME and SERVER (ip 192.168.0.100) using 
Windows XP built in VPN server and client.
Connection succeeded, but browsing network for workgorup computers, from the 
SERVER I don't see the CLIENTNAME. Instead of this I tried to run the 
classic Run... with \\192.168.0.15 and WOW I've been prompted for user name 
and password. WOW, it does work, I see shared folders and the shared 
printer... but as said above... I cannot print on it. Viceversa from the 
CLIENTNAME browser I connect fine to http://192.168.0.100.

HELP

Thank you in advance for any answer/tip/or help

Robert

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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved