How to check if move_uploaded_file function has error
<p>i have the following code for uploading the file on my folder and it is working on localhost, but when i uploaded the code online, it's not working though i have put the correct path. Is there any way i could see the reason or error why? </p>

<pre><code> move_uploaded_file($img_tmp,"../images/profile/$post_image1");
</code></pre>