PHP 4 / API Kit
Started by Chris on January 14th, 2010 23:12 | return to category | Follow by RSS
Hey BOTR Team,
ist it possible to get an PHP 4 API Kit instead of the Kit only working on PHP 5 and above?
JeroenW
January 19th, 2010 12:10We haven't had any requests for a PHP 4 Kit to date. We'll look into this, perhaps the PHP5 kit can be easily modified to support PHP4 as well.
Murray Picton
January 21st, 2010 18:19Here is how to modify the PHP5 kit to work on PHP4: 1. Download the API 2. Change the variable names from 'public $...' to 'var $...' 3. Remove 'public' from all the function definitions. 4. Rename the '__construct' function to 'BotrAPI' 5. Fix the fact that the http_build_query function doesn't exist in php4, I recommend using the function from the php manual at http://php.net/manual/en/function.http-build-query.php (It's a comment by Marco K. (Germany))
Hope that helps!