淘宝开放平台测试提示有很多Warning,不清楚问题出在哪里。使用的php语言+新浪SAE云服务器
在导入了淘宝开放平台的SDK文件包后,尝试调用其中一些简单的接口,虽然相应的信息都能正确调出,但会有很多提示信息,大致都是说的没有权限添加文件之类的,不知道是SAE的问题还是淘宝的问题还是什么,烦请指教。
下面是前5个Warning(总共几十个,所以就不全部列出了。):
Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/usr/local/sae/php/lib/php/sae_std_lib:/usr/local/sae/php/lib/php/apibus_lib:.:/usr/share/fonts/chinese/TrueType:/usr/local/sae/php/lib/php/pear:/data1/www/htdocs/928/域名/1/:/saetmp/928/域名/1420332944_2799402612/:) in taobao_sdk/lotusphp_runtime/Lotus.php on line 55
User notice: invalid [default store dir]: /tmp/ in taobao_sdk/lotusphp_runtime/Lotus.php on line 61
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/tmp/LtStoreFile/LtAutoloader-token-cache/b7/cc) is not within the allowed path(s): (/usr/local/sae/php/lib/php/sae_std_lib:/usr/local/sae/php/lib/php/apibus_lib:.:/usr/share/fonts/chinese/TrueType:/usr/local/sae/php/lib/php/pear:/data1/www/htdocs/928/域名/1/:/saetmp/928/域名/1420332944_2799402612/:) in taobao_sdk/lotusphp_runtime/StoreFile.php on line 33
User notice: Can not create /tmp/LtStoreFile/LtAutoloader-token-cache/b7/cc in taobao_sdk/lotusphp_runtime/StoreFile.php on line 37
Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/tmp/LtStoreFile/LtAutoloader-token-cache/b7/cc/b7cc5645e3951db1668cffd1f4c0755d.php) is not within the allowed path(s): (/usr/local/sae/php/lib/php/sae_std_lib:/usr/local/sae/php/lib/php/apibus_lib:.:/usr/share/fonts/chinese/TrueType:/usr/local/sae/php/lib/php/pear:/data1/www/htdocs/928/域名/1/:/saetmp/928/域名/1420332944_2799402612/:) in taobao_sdk/lotusphp_runtime/StoreFile.php on line 40
Warning: file_put_contents() [function.file-put-contents]: open_basedir restriction in effect. File(/tmp/LtStoreFile/LtAutoloader-token-cache/b7/cc/b7cc5645e3951db1668cffd1f4c0755d.php) is not within the allowed path(s): (/usr/local/sae/php/lib/php/sae_std_lib:/usr/local/sae/php/lib/php/apibus_lib:.:/usr/share/fonts/chinese/TrueType:/usr/local/sae/php/lib/php/pear:/data1/www/htdocs/928/域名/1/:/saetmp/928/域名/1420332944_2799402612/:) in taobao_sdk/lotusphp_runtime/StoreFile.php on line 48
Warning: file_put_contents(/tmp/LtStoreFile/LtAutoloader-token-cache/b7/cc/b7cc5645e3951db1668cffd1f4c0755d.php) [function.file-put-contents]: failed to open stream: Operation not permitted in taobao_sdk/lotusphp_runtime/StoreFile.php on line 48
所有的Warning似乎都和tmp、usr这两个目录有关,比如第一个Warning似乎说的是tmp目录不存在,但我不清楚是需要我自己添加这个目录吗?我尝试添加到淘宝SDK的根目录下过,但没有用。
最多只能给100分。。。