exit function

From: Date: Thu, 19 Oct 2000 22:13:27 +0000
Subject: exit function
Groups: php.general 
Request: Send a blank email to php-general+get-21286@lists.php.net to get a copy of this message
I'm usually on the answering end - but now I'm the one asking ;O) I know in C/C++ you can designate a function to run if a program gets killed on some way or another (for cleanup reasons). Is there a way to do this with a shell PHP script? Here's the scenario - I have a script that sends out some 900K emails (large targeted mailing list for work) and if the server, or any point between that and my workstation goes down, I need to have it update something somewhere so I know what record to start on to resume sending the emails. Any ideas? --Joe /*****************************\ * Joe Stump * * www.Care2.com * * Office: 650.328.0198 * * Extension: 122 * \*****************************/ http://www.miester.org/Joe/Stump/Joe_Stump_resume.html -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$ N+@ o? K? w---! O-@ M+@ V-! P(++) PE(+) Y+@ PGP+++@ t+@ 5? R-! tv@ b+ DI++@ D(++++) G++@ e+@ h@ r+! z(+++++**)! ------END GEEK CODE BLOCK------

« previous php.general (#21286) next »