Windows上的Google App Engine PHP [英] Google App Engine PHP on windows

查看:130
本文介绍了Windows上的Google App Engine PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图开始使用PHP的Google应用引擎(在Windows 7上),并一直试图遵循helloworld示例这里



我遇到的问题是启动webserver。无论何时我尝试运行它,我都会收到错误消息。

  dev_appserver.py:错误:参数太少

我在命令行输入以下内容:

  google_appengine \dev_appserver.py --php_executable_path = c:\php\php-cgi c:\appengine\helloworld\ 

任何关于我做错的建议是什么?

干杯

解决方案

为引数使用引号。

  google_appengine \dev_appserver.py --php_executable_path =c:\php\php-cgic:\\ \\appengine\helloworld

或者使用斜杠代替反斜杠作为目录分隔符:

  google_appengine \dev_appserver.py --php_executable_path = c:/ php / php-cgi c:/ appengine / helloworld 

为了获得最好的结果,结合了这两种方法;)


I'm trying to get started with using Google app engine with PHP (on Windows 7) and have been trying to follow the helloworld example here.

Problem I am having is in starting the webserver. Whenever I try to run it I get the error

dev_appserver.py: error: too few arguments

I'm typing the following at the command line:

google_appengine\dev_appserver.py --php_executable_path=c:\php\php-cgi c:\appengine\helloworld\

Any suggestions as to what I am doing wrong?

Cheers

解决方案

Use quotes for arguments.

google_appengine\dev_appserver.py --php_executable_path="c:\php\php-cgi" "c:\appengine\helloworld"

Or use slashes instead of backslashes as directory separator:

google_appengine\dev_appserver.py --php_executable_path=c:/php/php-cgi c:/appengine/helloworld

For best results combine both methods ;)

这篇关于Windows上的Google App Engine PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆