PHP will also execute code if it shuts down the browser

Source: Internet
Author: User

1 Ignore_user_abort();//turn off the browser and the PHP script will continue to execute.2 Set_time_limit(0);//set_time_limit (0) allows the program to be implemented without restrictions3 $interval=6*0.1;//every 0.6 seconds4 $i=1;5 include' Db.php ';6 $db=Newdb ();7    die;8  Do{9 $run=include' Config.php ';Ten #Judging value One if(!$run) die(' Process abort '); A   #SQL -  -   $sql= "INSERT into one values (null,".Date(' H:i:s '). "; the   $db->uidrst ($sql); -   Sleep($interval);//let the program sleep for 0.6 seconds -} while(true);

PHP will also execute code if it shuts down the browser

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.