Created
April 21, 2011 14:57
-
-
Save jessegreathouse/934698 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
<?php | |
//how to merge custom options into your client upon instantiation | |
$options = array( | |
'server' => 'http://staging.collegedegrees.com', | |
); | |
$client = new cdClient($options); | |
$client->request(); | |
$client->initHeaders(); | |
if (!$client->isType('html')) { | |
echo $client->getContent(); | |
exit(); | |
} | |
echo $client->getContent(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment