Location: PHPKode > scripts > JetDirect > jetdirect/example.php
<?php
/**
 * JetDirect Example
 * See readme.txt file for description and usage
 * 2007-01-16    First Version    hide@address.com
 *
 * IMPORTANT NOTE
 * there is no warranty, implied or otherwise with this software.
 *
 * LICENCE
 * This code has been placed in the Public Domain for all to enjoy.
 *
 * @author    <hide@address.com>
 * @package   JetDirect
 */


// Include Class
require_once("class-jetdirect.php"); 

// Create Object
$myobj=new JetDirect();

// Set host name or IP address 
$myobj->setAddress("HP2300");

// Set Port - Optional if your systems 'knows' about JetDirect
$myobj->setPort(9100);

// Set Message
$myobj->setMessage("Ready");

// Send Command
$myobj->send();

?>
Return current item: JetDirect