Hi all,
Is there any way we can make sure all html code (along with images) has finished loading before we execute php?
I tried to integrate javascript with php, but my knowledge of js is nil, so didn't get very far.
My idea was to get javascript to return a variable with function onLoad(); - then read that variable into php - once php has the variable available - it would go on it's way. (didn't work - probably because it was done incorrectly.)
The reason why I am doing this is - I have to run image resize - create images in tmp locations, then clean the tmp folder.... but php cleans the tmp folder before html displays the image... (has to be done one the fly)
I would like these images deleted as soon as the user is done viewing them - they're part of the page and not viewed separately, so it goes by <img src=foo.gif> - then unlink(foo.gif);
but unlink takes place before img src -
any help would be appreciated.
regards,
-m.