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?

Chris

January 18th, 2010 14:30

Nobody is running the API under PHP4?

JeroenW

January 19th, 2010 12:10

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.

Chris

January 19th, 2010 12:33

That would be fine.

Murray Picton

January 21st, 2010 18:19

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

JeroenW

January 22nd, 2010 16:34

Great info, thanks!

Post your reply

Reply form You can use some Markdown formatting. captcha Answer this simple calculation, to show us you're human
Pay as you go

Pay as you go

No commits, no monthly fees. Only pay for what you use. Replenish your account

We are hiring

We are hiring

Looking to join a cutting edge online video company? Then send us your resume.

Sign up

Signup for free

No login yet? Then sign up now and start uploading and streaming video in minutes.