我正在使用Google App Engine(GAE)进行网页开发,并且还使用了Smarty html模板引擎。Google App引擎无法打开SMARTY php脚本
这是我在include.php中使用的代码段。在我部署 之后,它向我展示了没有输出并向我显示这些日志。
<?php
include_once(dirname(dirname(__FILE__)) . '/includes/configs/config.inc.php');
if (!isset($_SESSION))
session_start();
$_SESSION['timestamp'] = time();
if (isset($_SESSION['auth']) && $_SESSION['auth'] === true)
$authStatus = true;
include_once(INCLUDE_DIR . '/library/util.php');
include_once(INCLUDE_DIR . '/library/connection.php');
include_once(CLASSES_DIR . 'db.class.php');
include_once(INCLUDE_DIR . '/langs/en.lang.php');
include_once(INCLUDE_DIR . '/helpers/browserDetect.class.php');
这将是我登出把
PHP的警告:include_once()的:实际上open_basedir的限制。文件(/ base/data/home/apps/s〜/includes/configs/config.inc.php)不在以下允许的路径中:(/ base/data/home/apps/s〜 /1.380323599570411257 /;/base/data/home/runtimes/php/sdk;/php_runtime/versions;/etc)在/base/data/home/apps/s~**/1.380323599570411257/includes.php上线2
PHP警告:include_once(/ base/data/home/apps/s〜/includes/configs/config.inc.php):无法打开流:/ base/data/home/apps/s中不允许操作〜 /1.380323599570411257/includes.php第2行
这将是我的app.yaml
application: ***
version: 1
runtime: php
api_version: 1
handlers:
- url: /css
static_dir: css
- url: /images
static_dir: images
- url: /js
static_dir: js
- url:/
script: index.php
- url: /(.+)$
script: index.php
@SahilMittal当然。 – 2015-01-22 07:49:55