I'm trying to teach myself OO pretty quickly, so I was wondering if someone
would mind giving me a quick "homework" type assignment so I can build a
few classes and get a lift off on what I need to do. Anything would help!
How about a wrapper for the cURL functions, with properties and/or methods for the most common curl_setopt() settings. Something you could use along these lines:
Possibly the constructor could include optional parameters for some of the most common settings.
$curl = new Curl($someUrlString);
$curl->returntranser = true;
$curl->postData($anAssocArrayOfData); // would also turn on CUROPT_POST
$result = $curl->exec();
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Great idea Nog, ill work on it over the weekend. Thx man!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)