Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 698 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 698 Bytes

GlyphClientPHP

PHP implementation of a client which communicates with the Pointwise Glyph Server.

Example usage:

<?php
error_reporting(E_ALL);
ini_set('display_errors', 'On');

require_once 'GlyphClient.php';
use Pointwise as pw; // make pw an alias for the Pointwise namespace

$glf = new pw\GlyphClient(); // Pointwise\GlyphClient() also works
if ($glf->connect()) {
    $result = $glf->cmd("pw::Application getVersion");
    print "Pointwise version is " . $result . "\n";
}
else if ($glf->is_busy()) {
    print "Pointwise is busy\n";
}
else if ($glf->auth_failed()) {
    print "Pointwise connection not authenticated\n";
}
else {
    print "Pointwise connection failed\n";
}
?>