=FAS=Shigawire Posted October 16, 2008 Posted October 16, 2008 Hi there, I now tried to query a Server, downlaoded php sdk, uploaded all files, then copied the example file from the wiki. PHP Code: include( "mta_sdk.php" ); $mtaServer = new mta("195.20.108.91", 22003); $resource = $mtaServer->getResource ( "echobot" ); $retn = $resource->call ( "getThisResource" ); // $retn is an array containing the values the function returned $resource = $retn[0]; // the first returned value is the resource $retn = $resource->call ( "getResourceName", $resource ); $resourceName = $retn[0]; // contains the name of the resource 'echobot' what comes out: Fatal error: Uncaught exception 'Exception' with message 'There was a problem with the request. Ensure that the resource exists and that the name is spelled correctly.' in /data/apache/users/kilu.de/fasquad/www/mtaphp/mta_sdk.php:196 Stack trace: #0 /data/apache/users/kilu.de/fasquad/www/mtaphp/mta_sdk.php(79): mta->do_post_request('195.20.108.91', 22003, '/echobot/call/g...', '') #1 /data/apache/users/kilu.de/fasquad/www/mtaphp/mta_sdk.php(257): mta->callFunction('echobot', 'getThisResource', Array) #2 /data/apache/users/kilu.de/fasquad/www/mtaphp/test.php(6): Resource->call('getThisResource') #3 {main} thrown in /data/apache/users/kilu.de/fasquad/www/mtaphp/mta_sdk.php on line 196 link: http://www.fasquad.kilu.de/mtaphp In the IRC they couldnt help me.. Seem to be a bit lazy... I would be same Still i would like to get that working
50p Posted October 17, 2008 Posted October 17, 2008 Open mta_sdk.php, go to line 196 (as you can see at the end of the error message), "There was a problem with the request. Ensure that the resource exists and that the name is spelled correctly."
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now