title: What is the correct format for a directory path when using PHP's opendir()?
body: <p>I'm having trouble with my filepath when using <code>opendir()</code>. I get the following warning:</p>
  
  <blockquote>
    <p>PHP Warning:  opendir(/uploads/users/405/images/profile/profilepic/)
    [function.opendir]: failed to open dir:
    No such file or directory in
    /home/my_folder/public_html/models/photos.php on line 1059</p>
  </blockquote>
  
  <p>line 1059 in <em><code>photos.php</code></em> has the following:</p>
  
  <pre><code>if ( ( $handle = opendir( $profile_pic_path ) ) ) { // do stuff }
  </code></pre>
  
  <p>where:</p>
  
  <pre><code>$profile_pic_path = '/uploads/users/405/images/profile/profilepic/';
  </code></pre>
  
  <p>I've tried several different things, but I can't get it to work (I keep getting the PHP Warning message in my error log). </p>
  
  <p>What am I doing wrong?</p>