]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/test.php
Update CGI documentation and add testable examples for CGI support (Issue #5940)
[thirdparty/cups.git] / doc / test.php
CommitLineData
d03753f3
MS
1#!/usr/bin/php -nf
2<?php
3print("Content-Type: text/html\n\n");
4print("<!DOCTYPE html>\n"
5 ."<html>\n"
6 ." <head>\n"
7 ." <title>PHP script CGI test page</title>\n"
8 ." </head>\n"
9 ." <body>\n"
10 ." <h1>PHP script CGI test page</h1>\n"
11 ." <pre><kbd>ps ax</kbd>\n");
12$fp = popen("ps ax", "r");
13while ($line = fgets($fp, 1024))
14{
15 print(htmlspecialchars($line));
16}
17print("</pre>\n"
18 ." </body>\n"
19 ."</html>\n");
20?>