]> git.ipfire.org Git - thirdparty/cups.git/blame - scripting/php/phpcups.php
Load cups into easysw/current.
[thirdparty/cups.git] / scripting / php / phpcups.php
CommitLineData
ef416fc2 1<?
2//
3// "$Id: phpcups.php 3603 2003-04-11 18:42:52Z mike $"
4//
5// PHP test script for the Common UNIX Printing System (CUPS).
6//
7// Copyright 1997-2003 by Easy Software Products, all rights reserved.
8//
9// These coded instructions, statements, and computer programs are the
10// property of Easy Software Products and are protected by Federal
11// copyright law. Distribution and use rights are outlined in the file
12// "LICENSE.txt" which should have been included with this file. If this
13// file is missing or damaged please contact Easy Software Products
14// at:
15//
16// Attn: CUPS Licensing Information
17// Easy Software Products
18// 44141 Airport View Drive, Suite 204
19// Hollywood, Maryland 20636-3111 USA
20//
21// Voice: (301) 373-9603
22// EMail: cups-info@cups.org
23// WWW: http://www.cups.org
24//
25
26// Make sure the module is loaded...
27if(!extension_loaded('phpcups')) {
28 dl('phpcups.so');
29}
30
31// Get the list of functions in the module...
32$module = 'phpcups';
33$functions = get_extension_funcs($module);
34
35echo "Functions available in the $module extension:<br>\n";
36
37foreach($functions as $func) {
38 echo $func."<br>\n";
39}
40echo "<br>\n";
41
42$function = 'confirm_' . $module . '_compiled';
43if (extension_loaded($module)) {
44 $str = $function($module);
45} else {
46 $str = "Module $module is not compiled into PHP";
47}
48echo "$str\n";
49
50//
51// End of "$Id: phpcups.php 3603 2003-04-11 18:42:52Z mike $".
52//
53?>