Welcome Guest, Not a member yet? Register   Sign In
Can't Find Library/Helper/Class in CI
#6

[eluser]jmanpa[/eluser]
I'm not concerned about JSON encoding/decoding.
I'm talking about the HTTP call. This seems like something CI should have a helper for (for less code reasons):

// create a new cURL resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch)
// close cURL resource, and free up system resources
curl_close($ch);


Messages In This Thread
Can't Find Library/Helper/Class in CI - by El Forum - 08-02-2010, 02:41 PM
Can't Find Library/Helper/Class in CI - by El Forum - 08-02-2010, 03:21 PM
Can't Find Library/Helper/Class in CI - by El Forum - 08-02-2010, 03:33 PM
Can't Find Library/Helper/Class in CI - by El Forum - 08-02-2010, 03:52 PM
Can't Find Library/Helper/Class in CI - by El Forum - 08-02-2010, 04:40 PM
Can't Find Library/Helper/Class in CI - by El Forum - 08-02-2010, 07:37 PM
Can't Find Library/Helper/Class in CI - by El Forum - 08-02-2010, 09:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB