Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

haseeb php code

if(isset($_POST['order'])){
$print_output= $_POST['order'];
}
try
{
    $fp=pfsockopen("192.168.1.33", 9100);
    fputs($fp, $print_output);
    fclose($fp);

    echo 'Successfully Printed';
}
catch (Exception $e) 
{
    echo 'Caught exception: ',  $e->getMessage(), "
";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #haseeb #php #code
ADD COMMENT
Topic
Name
5+1 =