Hello all
I am trying this simple example from the command line interface to access the testlink database. This example below works if I specify the absolute path to the location of class-IXR.php file. If I specify it using IP address it does not work.
Do I need some HTTP packages installed or am I having some permission problems.
<?php
require_once('http://IP_address/testlink/third_party/xml-rpc/class-IXR.php');
// above works if used absolute path
define("SERVER_URL", "http://IP_address/testlink/lib/api/xmlrpc.php");
define("DEV_KEY", "97b98d32b515fc4f2c9a09abf6999849");
$client = new IXR_Client(SERVER_URL);
if(!$client->query('tl.sayHello')) {
echo "callfailed". $client->getErrorCode()."-".$client->getErrorMessage();
}
else {
print "class called\n";
print($client->getResponse());
}
?>
I look forward to your replies.
Thanks a lot.
access the testlink database by running a PHP from CLI
Moderators: Amaradana, TurboPT, TL Developers