dI am using this ajax.php to get livenews auto update. but sometimes it causes high cup usage, sometimes (120%) it is running on a apache. can you please inform me with this issue: the code is:
<?php
$data = file_get_contents('http://domaine.com');
preg_match("/<ul[^>]*id=\"toautoupdate\"[^>]*>(.*?)<\\/ul>/si", $data, $match);
echo $match[1];
?>