How call call php library function from button trigger

In my button under php I have this:

require ‘/devel/conf/sys/lib/gapi.class.php’; ??? not sure how to inlude gapi.class.php from my library

define(‘ga_email’,‘zzzzz@gmail.com’);
define(‘ga_password’,‘zzzzz’);

$ga = new gapi(ga_email,ga_password);

sc_alert( " I am Here ");

$ga->requestAccountData();

foreach($ga->getResults() as $result)
{
echo $result . ’ (’ . $result->getProfileId() . “)<br />”;
}

Thanks

Re: How call call php library function from button trigger

take a look at the macro sc_include.