웹 개발을 위해 Google App Engine (GAE)과 Smarty html 템플릿 엔진을 사용하고 있습니다.
이것은 내 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 on line 2
PHP 경고 : include_once (/ base / data / home / apps / s ~ /includes/configs/config.inc.php) : 스트림을 열지 못했습니다 : / base / data / home / apps / s ~ /1.380323599570411257 에서 작업이 허용되지 않습니다. /includes.php on line 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
내 app.yaml 파일을 docroot 외부에 배치했습니다. 그리고 app.yaml을 이와 같이 업데이트하면 저에게 효과적입니다.
application: creditcard-deals
version: 1
runtime: php
api_version: 1
handlers:
- url: /css
static_dir: css
- url: /images
static_dir: images
- url: /js
static_dir: js
- url: /(.*/)?.*\.tpl
mime_type: application/vnd.trid.tpt
static_files: tpl
upload: static/(.*\.tpl)
- url: (.+).php
script: \1.php
- url: /.*
script: /docroot/index.php
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다