Created
April 14, 2014 19:09
Revisions
-
Varga Zsolt created this gist
Apr 14, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ function endOutput($endMessage){ ignore_user_abort(true); set_time_limit(0); header("Connection: close"); header("Content-Length: ".strlen($endMessage)); echo $endMessage; echo str_repeat("\r\n", 10); // just to be sure flush(); } // Must be called before any output endOutput("thank you for visiting, have a nice day'); sleep(100); mail("[email protected]", "ping", "i'm here");