-
Tag Cloud
desktop domino eclipse error extjs firefox freewares google ibm install jaunty java javascript javascripts jquery LINUX lion mac MACOSX mysql news php plugins problem programming python recursive screenshot shortcut keys slackware snow leopard softwares ssjs terminal tips TIPS & TRICKS tips and tricks tools tricks ubuntu ubuntu 11.04 windows windows 7 wordpress xpages
curl Archive
-
How to get HTML source code with PHP
Posted on February 22, 2011 | No CommentsSometimes you may want to get the source code of an external HTML webpage. Well, here is the solution that might work in almost every cases <?php $ch = curl_init();... -
Simultaneuos HTTP requests in PHP with cURL
Posted on July 18, 2008 | No CommentsThe basic idea of a Web 2.0-style "mashup" is that you consume data from several services, often from different providers and combine them in interesting ways. This means you often need to do more than one HTTP request to a service or services. In PHP if you use something like file_get_contents() this means all the requests will be synchronous: a new one is fired only after the previous has completed. If you need to make three HTTP requests and each call takes a second, your app is delayed at least three seconds.