bagder: curl-www/libcurl/php/examples multi.php,1.1,1.2

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/libcurl/php/examples
In directory labb:/tmp/cvs-serv12369/examples

Modified Files:
	multi.php 
Log Message:
Jeremy Ellman's bugfixes


Index: multi.php
===================================================================
RCS file: /cvsroot/curl/curl-www/libcurl/php/examples/multi.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- multi.php	7 Aug 2005 18:08:33 -0000	1.1
+++ multi.php	12 Oct 2005 11:12:53 -0000	1.2
@@ -1,12 +1,13 @@
+<?php
 /************************************\
 * Multi interface in PHP with curl  *
 * Requires PHP 5.0, Apache 2.0 and  *
 * Curl 				    *
 *************************************
 * Writen By Cyborg 19671897         *
+* Bugfixed by Jeremy Ellman         *
 \***********************************/
 
-<?php
 $urls = array(
    "http://www.google.com/",
    "http://www.altavista.com/",
@@ -26,7 +27,7 @@
 
 do { $n=curl_multi_exec($mh,$active); } while ($active);
 
-foreach ($connomains as $i => $url) {
+foreach ($urls as $i => $url) {
        $res[$i]=curl_multi_getcontent($conn[$i]);
        curl_multi_remove_handle($mh,$conn[$i]);
        curl_close($conn[$i]);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.