-
AJAX what happens when…
Does any body know the answer to this?
If I use AJAX to execute a PHP file.. and the PHP file takes a long time to finish executing (its going through directories indexing files and putting them into a database).. If someone clicks a button and the AJAX executes the PHP file, but then the person navigates away from the page the AJAX request was made.. will the PHP file stop executing even if it hasnt finished processing everything.
I’m trying to make something that will go through and check images under a few directories and link them by name to elements that are in a MYSQL database.. it then puts the links into the database to tell the script where the files are. I was going to make it just a cron job that executes say every week or something.. but have decided I want it to be user controlled so the user can specify when they want to index everything.
Does anyone know?
D
Dan Browne
Hawkes Bay, New Zealand
Membrana