imagecreatefromjpeg() function not geting file
<p>imagecreatefromjpeg() function says file not exists, but when I check using file_exists() function, it says exists.</p>

<p>PHP code is like,  </p>

<pre><code>    $path = "/home/content/html/uploads/test.jpg";

    if(file_exists($path)) {
        echo "Exists!";
    } else {
        echo "File Not Exists!";
    }    

    $resize = new Resize($path, $img['name']);
    $resize-&gt;resizeImage($size[0], $size[1]);
    $resize-&gt;preview();
</code></pre>

<p>And I got the output like,</p>

<pre><code>Exists!
Warning: imagecreatefromjpeg(/home/content/html/uploads/test.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/content/html/includes/resize.php on line 20
</code></pre>

<p>Directory structure,</p>

<ul>
<li>/html
<ul>
<li>/uploads
<ul>
<li>test.jpg</li>
</ul></li>
<li>index.php</li>
</ul></li>
</ul>
