Print Directly to network printrer using php
I am unable print page to network printrer using php.But this works if it is a local printer.
I have installed php_printer.dll and enabled in php.ini 
The following is the code:


    //$handle  =  printer_open("Send To OneNote 2007"); ///This Works
    
    $handle = printer_open('\\\\192.168.0.8\\Canon MF4320-4350'); 
    printer_set_option($handle, PRINTER_MODE, "RAW");
    printer_write($handle, "TEXT To print");
    printer_close($handle);

It show the error

        Warning: printer_write() [function.printer-write]: couldn't allocate the 
    printerjob [5] in E:\Server\xampp\htdocs\Kiosk\Admin\print.php on line 16


Any help plz...????
Print Directly to network printrer using php
===

I am unable print page to network printrer using php.But this works if it is a local printer.
I have installed php_printer.dll and enabled in php.ini 
The following is the code:


    //$handle  =  printer_open("Send To OneNote 2007"); ///This Works
    
    $handle = printer_open('\\\\192.168.0.8\\Canon MF4320-4350'); 
    printer_set_option($handle, PRINTER_MODE, "RAW");
    printer_write($handle, "TEXT To print");
    printer_close($handle);

It show the error

        Warning: printer_write() [function.printer-write]: couldn't allocate the 
    printerjob [5] in E:\Server\xampp\htdocs\Kiosk\Admin\print.php on line 16


Any help plz...????