Ok, here's my problem: I built a website where users can upload their photos, but (I know this will sound weird) I need to delete their photos after they leave the page. Is there any way to this in PHP? I've already tried to use "onbeforeunload()" and then handle the problem using Javascript redirect (by accessing via URL a PHP script), but the problem is Opera seems to not recognize "onbeforeunload()" no matter what I try. So I was thinking to delete the file via PHP immediately after the image is loaded on the page, but no matter how I try to do this it seems the "src" of the "img" is lost. By the way, I echo the "<img />" before deleting the file via "unlink()".
So, any idea?

New Topic/Question
Reply




MultiQuote






|