View Single Post
  #7   Spotlight this post!  
Unread 09-03-2008, 03:23
Greg McCoy's Avatar
Greg McCoy Greg McCoy is offline
boiler up!
FRC #3940 (CyberTooth)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Kokomo, IN
Posts: 484
Greg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond repute
Send a message via AIM to Greg McCoy
Re: [TBA]: Issues with TBA API

Quote:
Originally Posted by FRANK(WGH) View Post
Where do you specify
PHP Code:
$method 
in
PHP Code:
function tba_send_request($method$arguments=array()) 
?
You shouldn't directly call tba_send_request, this is a sort of "private" helper function. Instead, you call make_array(), get_events(), get_matches(), etc. These functions are the ones that call tba_send_request, and they fill in $method.


You're sure that PHP is installed correctly? You could try this short script to make sure...if PHP is installed okay it will return a web page with information about your PHP/system configuration. If PHP is installed correctly, all you should have to do is fill in your API key, and put both files in the same directory on your web server and then view api_team_history.php with a web browser.

PHP Code:
<?php
  phpinfo
();
?>
Hope this helps...

Last edited by Greg McCoy : 09-03-2008 at 03:28. Reason: improved clarity
Reply With Quote