> 2 - I need to do some maintanance or cleanup such as deleting temp files,
or
removing stale entries from the database.
Solution: External script or application that is run from the Cron Daemon
or Windows Task Scheduler.
The exact point is the second one !!!
I've no CRON daemon possibility as I've no rights on the server (exec, cron,
system have been unactivated for security reasons). I may call a script from
house, with Task Scheduler, but it will be called on selected time, not when
a new article is inserted. I'd like the process to run when a new article is
inserted, not 2 hours later ! I'm also against to have my machine to run
24/24 7/7 for calling a script on a server. The process should be done
directly from the scripts themselves.
I'll explain what I need:
1- the user enter new article details for sell in script1.php
2- the user clicks "submit" and the script call insert1.php
3a- All customers who are looking for such article (on some criteria, color,
price...) must be contacted by an email with a link pointing to the new
article. the user doesn't need any information from here ! so it's an
independent process.
3b- insert1.php insert the article in the database and then inform the user
that the article is inserted in the shop.
3a should be executed when the script is submitted at point 2, but the user
doesn't need any information from it, and since it takes a long time, it
should be executed without the need to wait on it.
3b is also submitted at the point 2, but it returns information, and must
not wait until 3a is finished, as they are 2 different processes.
How to launch 3a (3b is what appens now, but I don't know how to launch 3a
without the need to wait is finished to continue).
Bob