Skip to content

Commit b0e7afb

Browse files
committed
Tweaked to run on Google AppEngine
1 parent 3be1196 commit b0e7afb

File tree

6 files changed

+20
-1
lines changed

6 files changed

+20
-1
lines changed

app.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ handlers:
2020

2121
- url: /
2222
script: www/index.php
23+
24+
- url: /
25+
script: www/phpinfo.php

deploy-gae.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
#
3+
# deploy php engine to Google AppEngine
4+
#
5+
/usr/local/google_appengine/appcfg.py --oauth2 update .
6+

php.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google_app_engine.enable_functions = "gc_enabled,get_current_user,phpinfo,phpversion,php_sapi_name,php_uname"

run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
#
3+
#
4+
scp -i /etc/fileformatnet/nfsnet.pem www/test.php fileformat_regexplanet-tcl@ssh.phx.nearlyfreespeech.net:/home/public

www/phpinfo.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
phpinfo();
4+
5+
?>

www/status.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$retVal["gc_enabled()"] = gc_enabled();
88
$retVal["get_current_user()"] = get_current_user();
99
$retVal["getcwd()"] = getcwd();
10-
$retVal["gethostname()"] = gethostname();
10+
//no gae $retVal["gethostname()"] = gethostname();
1111
$retVal["get_loaded_extensions()"] = get_loaded_extensions();
1212
$retVal["gmdate(DATE_ISO8601)"] = gmdate(DATE_ISO8601);
1313
//too much: $retVal["get_defined_constants()"] = get_defined_constants();

0 commit comments

Comments
 (0)