I am trying to test basic authentication, and my php file does not throw the "Cannot Include Loader" when I am testing it, but it does not print the error message after the require once. I am thinking there is something wrong there. Any idea? It has me stumped.
Thanks, ~Marty <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>H9 test</title> </head> <?php $file = 'Zend/Loader.php'; echo($file); if (!is_file($file) or !is_readable($file)) die("Cannot Include Loader"); require_once ('Zend/Loader.php'); echo("error \n"); Zend_Loader::loadClass('Zend_Gdata_AuthSub'); echo("error \n"); Zend_Loader::loadClass('Zend_Gdata_Health'); echo("error \n"); function generateAuthSubURL() { $next = 'http://localhost'; $scope = 'https://www.google.com/h9/feeds'; $authSubHandler = 'https://www.google.com/h9/authsub'; $secure = 0; $session = 1; $authSubURL = Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope, $secure, $session, $authSubHandler); // 1 - allows posting notices && allows reading profile data $permission = 1; $authSubURL .= '&permission=' . $permission; return '<a href="' . $authSubURL . '">Link your H9 Account</a>'; } echo generateAuthSubURL(); ?> <body> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Health Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/googlehealthdevelopers?hl=en.
