📜 ⬆️ ⬇️

Setting the time limit of the script

//This is an optimization. We assume than no step can take more than one year.
if($time_limit > 0)
$end_time = time() + $time_limit;
else
$end_time = time() + 365*24*3600; // One year


Taken from 1C-Bitrix (from the parsing class CommerceML).

')

Source: https://habr.com/ru/post/99794/


All Articles