我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

jquery ajax cpu使用率高

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];
?>

近期文章

  • php socket不是整个数据
  • PHP MVC - 何时/何时加载共享页面内容('modules'/'widgets')?
  • 服务器和wordpress迁移后的随机mysql连接错误和其他问题
  • YII提出的安全Ajax请求
  • 一段时间后执行php程序
  • too long
  • too long
  • 将外部PHP文件包含到Wordpress自定义模板中
  • 使用curl发送文件
  • 在wordpress中为评论添加数字
  • 将Active Directory添加到网站
  • Google Short Url Api会返回已编码的网址
  • 如何使用PHP通信Java服务器?
  • 使用php和plesk编写权限的文件夹
  • PHP从同一列中选择多个项目以在页面中呈现
  • Cake PHP在一个地方定义String Constants
  • 无法加载Libreadline
  • 我怎么得到分钟?
  • Cakephp SQL错误1054字段列表中的未知列
  • 搜索<td>,并编辑另一个<td>的内容

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华