From: Darron F. <da...@fr...> - 2002-03-02 17:58:07
|
Nathan, I'm pretty sure that Tim chose curl for a couple reasons: 1. We've been using it for a while to do other handy things with PHP and haven't had many problems with it. We've been using it without problems since about PHP 4.0.6 - 4.0.4pl1 and curl works OK but there are some small bugs. 2. I'm pretty sure that he tried using the fopen wrappers and couldn't get them to work properly for some reason. Regardless, it should be pretty easy to use the fopen wrappers if curl isn't available - all that needs to be changed is the getFile function. There are people who are talking about bundling curl with PHP on the php-dev list - so in the future, this may not be an issue: http://www.zend.com/lists/php-dev/200201/msg03022.html And because of PHP's large security bugs, everyone's *strongly* encouraged to upgrade to 4.1.2 ASAP anyways - which doesn't give them a working curl automatically, but it's a start. Your call - we could leave the current code in and if curl isn't available, it just uses the regular fopen wrappers to grab the files - that shouldn't be too hard. I've signed up to the development list - Tim may take a little while longer to sign up - last I heard from him, his wife was going into labor. ;-) ----- Original Message ----- From: "Nathanial Hendler" <eq...@ya...> To: "Darron Froese" <da...@fr...>; <apb...@li...> Cc: <st...@lb...>; <ti...@ja...> Sent: Friday, March 01, 2002 9:46 PM Subject: Re: Apb caching patches... > First, are you and tim on the apb-development mailing list > (http://lists.sourceforge.net/lists/listinfo/apb-deve lopment)? I don't want to be bombarding you > with doubles of each email I send, but I'd like this kind of stuff to be on the list. > > I got the new scheme and patches you posted setup at http://labs.retards.org/apb2 It doesn't work > yet, since I don't have php compiled with curl support. I did take the first step and install the > curl libraries though. I'd like to know why you used curl, and not normal php functions. I'm not > crazy about having dependencies, and I'm less crazy about dependencies that require a recompile of > PHP. I also read that curl doesn't like PHP earlier than 4.1.0. Another thing that makes me > uneasy about using it. It seems like we can provide the functionality you've come up with, > without using something that will make apb harder to install. Maybe I'm wrong, that's why I'm > asking. I'm not sure why you choose curl. > > Anyway, a quick reply about that would be really useful. > > Thanks, > Nathan > http://retards.org/ |