Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

PHP 4 / API Kit

5 replies [Last post]

Hey BOTR Team,

ist it possible to get an PHP 4 API Kit instead of the Kit only working on PHP 5 and above?

Nobody is running the API under PHP4?

We 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.

That would be fine.

Here 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 httpbuildquery 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!

Great info, thanks!