ฟังก์ชัน ignore_user_abort()
ความหมายของฟังก์ชันและการใช้งาน
การตั้งค่าว่า Script จะ Run ต่อหรือไม่ ถ้า User Disconnect ด้วยฟังก์ชัน ignore_user_abort()
รูปแบบการเขียน (Syntax)
ignore_user_abort(setting)
- setting คือ การตั้งค่า
ตัวอย่าง
<?php
$str="test is string";
ignore_user_abort(TRUE);
?>
ฟังก์ชัน ignore_user_abort() เมื่อตั้งค่าเป็น TRUE หาก User Disconnect แล้ว Script จะ Run ต่อ
ฟังก์ชัน ignore_user_abort() เมื่อตั้งค่าเป็น FALSE จะไม่ Run ต่อ