getimagesize() not find file just save to local server
<p>I am trying to create an image slice on the fly from number of image on a webpage.</p>

<p>I have a bit of PHP in which I am calling a function a few times in the first call an image is created and writen to the server file system.</p>

<p>But when I try to reload the image to add to it in later calls the new created image is not found</p>

<p>Any idear what is going on here</p>

<p>Here a code block </p>

<pre><code>if ($fileMissing){
        // Save the image done the first time round 
        imagejpeg($imageResized, $this-&gt;SliceImageFileLocation);

    }else{

         //load the saved image both of these don't work the

         list($CurrentWidth, $CurrentHeight) = getimagesize( $this-&gt;SliceImageFileLocation); 
         $CurrentImg = imagecreatefromjpeg($this-&gt;SliceImageFileLocation);


    }
</code></pre>
