In my boredom, I find I do a lot of things. Some of those things range from very silly to intense coding sessions. So, out of boredom tonight, I have built a script to use the Pastebin.ca API to make pastes remotely.
November 20, 2017: Small changes to code, a little cleanup.
* Object oriented wrapper for the cURL library.
* Based on the cURL class by David Hopkins (semlabs.co.uk).
* Creates an instance of the class.
* Adds a cURL session.
* Sets an option to a cURL session.
* Sets an array of options to a cURL session.
* Executes as cURL session.
* Executes a single cURL session.
* Remove all cURL sessions.
* Returns an array of session information.
* Returns an array of errors.
* Returns an array of session error numbers.
* @return	mixed						Pastebin URL on success, false or error string on failure.
$expiry = ''; // Never is empty.
I’m a 31 year old Web Developer, Programmer, and Domainer. I specialize in PHP and MySQL, and have used both extensively since early 2005.