XML-RCP not working and using functions usage in Bugzilla

torresmaize

New Member
Ok so I am writing a program to extract a comment form the bug. So first using XML-RCP I am trying to connect to the bugzilla and way to do it si viaputting http://bugzilla.yourdomainname.com/xmlrcp.cgiSo here is my code....setCookieJar(); $oClient->setHttpClient($oHttpClient); $aResponse = $oClient->call('User.login', array(array( 'login'=>'username', 'password' => 'password', 'remember' => 1 ))); //Log into bugzilla. function getInfoBug(int $bugno) { $aResponse = $oClient->call('Bug.get($bugno)'); //this would just return bug no. $aResponse = $oClient->call('Bug.get( ids => [$bugno], include_fields => [\'id\', \'comments\'] )'); //Getting info about bugs. $final = $Client->call('Bug.get(comments($aResponse)'); // return $final; } $bug = 1379; echo $answer = getInfoBug($bug);?>So actually am not really sure if I am calling the function in correctly from the buzilla API and another problem that is coming is that \[quote\] Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in C:\Zend\Apache2\htdocs\Aakash\bugzilla.php on line 6 Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='/usr/share/php/libzend-framework-php') in C:\Zend\Apache2\htdocs\Aakash\bugzilla.php on line 6\[/quote\]So am not really sure what is happening. Am just a beginner in PHP.
 
Back
Top