tbeseda
9/23/2010 - 9:12 PM

i heart quotes curl.php

<?
// get a quote for digest email signature... o_O
$ch = curl_init('http://iheartquotes.com/api/v1/random?source=art&max_lines=2');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
curl_close($ch);
list($quote) = explode('[', $output);
// yeah, that just happened...
?>