PHP curl与性能相关的问题是什么 [英] What are the performance related issues of PHP curl

查看:69
本文介绍了PHP curl与性能相关的问题是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户想要提取实时网页的html内容,并在其服务器中制作该html页面的副本.我正在考虑使用curl,当我打算使用curl时,是否存在任何性能问题?它会占用大量服务器内存吗?

My client wants to extract the html content of a live webpage and make a copy of the html page in his server. I am thinking of using curl and is there any performance issue linked when I am intending to use curl? Will it use a lot of server memory.

如果PHP curl出现性能问题,那么最佳的替代方法是什么?

If PHP curl has a performance issue, what is the best alternative to do this?

我打算在用户以表单提交Web URl时下载页面.我托管网络的服务器在linux平台中.

I am intending to download the page when a user submits the web URl in a form. The server that I am hosting the web is in a linux platform.

先谢谢您!

推荐答案

我将使用wget来获得快速而肮脏的解决方案(在Linux上)

I'd use wget instead for a quick and dirty solution (on linux)

wget -r 

在使用PHP时,请不要提及性能.如果您想开始问这些问题,也许您应该研究网络编程.作为喜欢玩网络编程的人,我应该警告您,这不是一个琐碎的话题.

Please don't mention performance when you're using PHP. If you want to start asking those questions, perhaps you should be looking into network programming. As someone who likes playing with network programming, I should warn you that it's not a trivial topic.

这篇关于PHP curl与性能相关的问题是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆