PHP print to receipt brother printer
<p>i'm trying to print to a Brother QL 720 NW lan receipt printer with a static ip address.
I'm trying in this way:</p>

<pre><code>$texttoprint = "RECIPT TEXT \n NEXT LINE \n MORE STUFF";
    $texttoprint = stripslashes ( $texttoprint );

    try {
        $fp = pfsockopen ( "10.66.112.35",9100);
        fputs ( $fp, $texttoprint);
        fclose ( $fp );
    } catch ( Exception $e ) {
        echo 'Caught exception: ', $e-&gt;getMessage (), "\n";
    }
    echo 'Successfully Printed';
</code></pre>

<p>I got always "Successfully printed" as result, but i'v never had printer working, could you help me?</p>

<p>Off course i've tried to ping from the server the printer and all was successfully...
Hope you'll help me.
Thank you very much</p>