I am attempting to use the Google PHP library on App Engine, but am having trouble getting the include paths correct.
From the instructions here: https://developers.google.com/api-client-library/php/start/installation I am adding
set_include_path(get_include_path() . PATH_SEPARATOR . '/google-api-php-client/src');
to my code, but It does not seem to include the files properly.
I get errors on include 'google-api-php-client/src/Google/autoload.php'; mainly
PHP Warning: include(): open_basedir restriction in effect.
File(/base/data/home/apps/.../google-api-php-client/src/Google/autoload.php) is not within the allowed path(s)
I have tried more creative methods such as:
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__)).'/google-api-php-client/src');
but to no avail. Everything works fine on localhost, but presumably because it doesn't have the same include path restrictions.
any suggestions appreciated!
google-api-php-client/src/Google/autoload.phpset_path_includeline. Also what would be the explanation as to what is causing the PHP warning?