How to properly set up Zend validator class
<pre><code>&lt;?php
require_once 'library/Validate.php';

$test = 'john';

$validator = new Zend_Validate_EmailAddress();

if ($validator-&gt;isValid($test)) {
    // email appears to be valid
} else {
    // email is invalid; print the reasons
    foreach ($validator-&gt;getMessages() as $messageId =&gt; $message) {
        echo "Validation failure '$messageId': $message\n";
    }
}
</code></pre>

<p>This is my folder structure</p>

<blockquote>
  <p>www/</p>
  
  <p>test.php</p>
  
  <p>library/Zend/Validate/</p>
  
  <p>library/Validate.php</p>
</blockquote>

<p>I get the error:</p>

<pre><code>Fatal error: Class 'Zend_Validate_EmailAddress' not found in C:\wamp\www\dean\test.php on line 6
</code></pre>

<p>How do I fix it?</p>
