Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "</br>1";
- require_once "System/Daemon.php"; // Include the Class
- echo "</br>2";
- System_Daemon::setOption("appName", "mydaemon"); // Minimum configuration
- echo "</br>3";
- System_Daemon::start(); // Spawn Deamon!
- echo "</br>4";
- for ($x=0; $x<=100000; $x++)
- {
- file_put_contents("qas.txt", $x);
- }
- // Stop daemon!
- System_Daemon::stop();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement