【发布时间】:2013-06-15 14:18:01
【问题描述】:
当我尝试使用以下命令启动本地主机服务器时,我不断收到语法错误:行继续符后出现意外字符:
google_appengine\dev_appserver.py --php_executable_path="C:\Computer Science\PHP\php\php-cgi.exe" "C:\Computer Science\PHP\helloworld"
怎么了?
我的 app.yaml:
application: helloworld
version: 1
runtime: php
api_version: 1
handlers:
- url: /.*
script: helloworld.php
我的 helloworld.py
<?php
echo 'Hello, World!';
?>
我的目录
/PHP
/php
/php-cgi.exe
/helloworld
/google_appengine
编辑:
我使用 google app engine 启动器运行了我的应用程序,在启动设置中使用了 php sdk 和一个额外的命令行标志:
--php_executable_path=C:\Computer Science\PHP\php\php-cgi.exe。服务器崩溃了。
【问题讨论】:
-
能否提供运行 google_appengine\dev_appserver.py --php_executable_path="C:\Computer Science\PHP\php\php-cgi.exe" "C 时看到的错误的堆栈跟踪:\Computer Science\PHP\helloworld" 从命令行?
标签: php google-app-engine