Created
September 23, 2010 21:12
-
-
Save tbeseda/594375 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// 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... | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment