PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Zafar Iqbal   JetDirect   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Code
Class: JetDirect
Show a message in a printer LCD display
Author: By
Last change:
Date: 17 years ago
Size: 701 bytes
 

Contents

Class file image Download
<?php
/**
 * JetDirect Example
 * See readme.txt file for description and usage
 * 2007-01-16 First Version ultrasine@gmail.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 <ultrasine@gmail.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();

?>