I have some cron that run, and I have to run the file inside the cron.
now I’m using “file_get_contents();” there is a better way to run this file?
$qq=mysql_query("SELECT file FROM db");
while ($ww=mysql_fetch_assoc($qq)) {
file_get_contents('http://www.domain.com/'.$ww['file']);
}
thanks
Yes. Set a cronjob server-side.
Or open a socket.
http://php.net/manual/en/function.fsockopen.php
it does not slowdown user’s interaction