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];
?>
... id="toautoupdate"...
` and echo everything in the `` element, right ?
– Clément Malet Aug 29 '13 at 09:52