Location: PHPKode > scripts > Private Validator > private-validator/readme.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<title>mrclay.org : Private Validator</title>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<meta name="author" content="Stephen Clay" />
	<link title="Boring Plaid" href="http://mrclay.org/images/plaid.css" media="Screen" type="text/css" rel="stylesheet" />
<div id="container">
	<div id="content">
    <h1>Private Validator</h1>
    <p><a href="http://mrclay.org/junk/software/private_validator/">Private Validator</a> allows you to quickly <strong>validate
        the output of a private web server</strong> via the public <a href="http://validator.w3.org/">W3C's
        Validation Service</a>. If the
      W3C's server can't access your test server, this PHP script can gather
      its output and upload it to the validator for you. The W3C
        does not offer HTTPS connections, so keep in mind that <em>this
      sends the output of your private server across the internet unencrypted</em>.
      Pete Freitag created a <a href="http://www.petefreitag.com/item/39.cfm">Cold
      Fusion MX port</a> of this script!</p>
      <li>Web server with PHP which can access  the  server you wish to test.</li>
      <li>Web browser with javascript and access to the private server.</li>
      <li> Extract the files to a new directory on your test server.</li>
      <li>Open <code>http://path/to/your/privateValidate.php</code></li>
      <li>Save the given links as favelets/bookmarklets for quick usage.</li>
    <h2>How Does It Work?</h2>
      <li>You browse to a page on your private server and activate a bookmarklet.</li>
      <li> The bookmarklet submits the internal URL to privateValidate.php (PV 
        for short). </li>
      <li>PV places an HTTP GET request to your server.</li>
      <li>Your server's response is submitted as file-upload data to the W3C
        validator. (note: this POST data is sent unencrypted)</li>
      <li>Resulting output of the validator is returned to PV.</li>
      <li>PV adds a BASE element to the XHTML (so CSS &amp; links work) and sends 
        it to your browser.</li>
    <h2>What's Next </h2>
      <li>Add CSS validation via the <a href="http://jigsaw.w3.org/css-validator/">W3C
        CSS Validation Service</a>. Now that this validator allows file uploads,
        this should be cake to add. </li>
      <li>Allow POST form handler output to be validated (bookmarklet would change
         the form's action attribute to point to PV, PV would echo the POSTed
        data back to the private server in its own POST request.)</li>
    <h3>Version History</h3>
    <table border="1" cellpadding="4" summary="Version history">
        <th scope="col">Version</th>
        <th scope="col">Date</th>
		<th scope="col">Notes</th>
        <td>+ PrivateValidator class<br>
        + error reporting</td>
        <td>Initial &quot;quick &amp; dirty&quot; Release. </td>
    <h3>Credits / License</h3>
    <p>Private Validator was created by <a href="http://mrclay.org/">Stephen
        Clay</a> and is freely available under the <a href="http://www.opensource.org/licenses/gpl-license.html">GNU
    General Public License</a> (GPL). Private Validator relies on the Advanced
    HTTP Client class by GuinuX. This is also GPLed and its source is included.</p>
Return current item: Private Validator