PHP: Remove image from server
<p>as I you can upload profile avatar to your profile, I wish to remove the previous one the user had. </p>

<p>So before the query, where it changes the column "avatar" with the newfile.jpg, i wish to grab the newfile.jpg, and remove it from the server.</p>

<p>How can I remove an image from the server? A secure way</p>
