10 Min to Learn
GAE for PHP
http://goo.gl/rDRSH6
WHO AM I
Ethan - 陳禕寰
Front-End Engineer
Introduction
● Installing the SDK
● Build an App Engine application using PHP
○ Hello GAE Example
○ Handling Forms
○ Using Static File ( CSS and Images )
● Uploading your application
○ Regist、Create、Upload
Installing the SDK
● Linux
● Mac OS X
● Windows
Installing the SDK - Windows
1. Python 2.7
2. PHP SDK for App Engine
3. MySQL(Community Server for Local
Development)
Installing the SDK - Mac OS X
1. Check python version : needs 2.7
/usr/bin/env python -v
if not 2.7 > https://www.python.org/downloads/
2. Installing MySQL
Introduction
● Installing the SDK
● Build an App Engine application using PHP
○ Hello GAE Example
○ Handling Forms
○ Using Static File ( CSS and Images )
● Uploading your application
○ Regist、Create、Upload
Hello GAE!
1. Creating a simple script
● hello.php
2. Creating the configuration file
● app.yaml
3. Test the application!
● Do it!
Hello GAE Example!
Introduction
● Installing the SDK
● Build an App Engine application using PHP
○ Hello GAE Example
○ Handling Forms
○ Using Static File ( CSS and Images )
● Uploading your application
○ Regist、Create、Upload
Handling Forms
Edit hello.php and try submitting messages
Introduction
● Installing the SDK
● Build an App Engine application using PHP
○ Hello GAE Example
○ Handling Forms
○ Using Static File ( CSS and Images )
● Uploading your application
○ Regist、Create、Upload
Using Static Files - CSS or Images
1. Edit app.yaml and replace its contents.
2. Create the directory stylesheets, and create
a new file named main.css.
Introduction
● Installing the SDK
● Build an App Engine application using PHP
○ Hello GAE Example
○ Handling Forms
○ Using Static File ( CSS and Images )
● Uploading your application
○ Regist、Create、Upload
Registering an app on GAE
Go to https://appengine.google.com/ or this
and log in with your Google account,
then create application.
Create Project
Uploading the Application
1. Uploading via command line
○ appcfg.py update helloworld/
2. Use the App Engine Launcher
3. Using Git
http://your_app_id.appspot.com
Demo code
http://goo.gl/ETs6c9

GAE for PHP - 10 Min to Learn

  • 1.
    10 Min toLearn GAE for PHP http://goo.gl/rDRSH6
  • 2.
    WHO AM I Ethan- 陳禕寰 Front-End Engineer
  • 3.
    Introduction ● Installing theSDK ● Build an App Engine application using PHP ○ Hello GAE Example ○ Handling Forms ○ Using Static File ( CSS and Images ) ● Uploading your application ○ Regist、Create、Upload
  • 4.
    Installing the SDK ●Linux ● Mac OS X ● Windows
  • 5.
    Installing the SDK- Windows 1. Python 2.7 2. PHP SDK for App Engine 3. MySQL(Community Server for Local Development)
  • 6.
    Installing the SDK- Mac OS X 1. Check python version : needs 2.7 /usr/bin/env python -v if not 2.7 > https://www.python.org/downloads/ 2. Installing MySQL
  • 7.
    Introduction ● Installing theSDK ● Build an App Engine application using PHP ○ Hello GAE Example ○ Handling Forms ○ Using Static File ( CSS and Images ) ● Uploading your application ○ Regist、Create、Upload
  • 8.
    Hello GAE! 1. Creatinga simple script ● hello.php 2. Creating the configuration file ● app.yaml 3. Test the application! ● Do it!
  • 9.
  • 10.
    Introduction ● Installing theSDK ● Build an App Engine application using PHP ○ Hello GAE Example ○ Handling Forms ○ Using Static File ( CSS and Images ) ● Uploading your application ○ Regist、Create、Upload
  • 11.
    Handling Forms Edit hello.phpand try submitting messages
  • 12.
    Introduction ● Installing theSDK ● Build an App Engine application using PHP ○ Hello GAE Example ○ Handling Forms ○ Using Static File ( CSS and Images ) ● Uploading your application ○ Regist、Create、Upload
  • 13.
    Using Static Files- CSS or Images 1. Edit app.yaml and replace its contents. 2. Create the directory stylesheets, and create a new file named main.css.
  • 14.
    Introduction ● Installing theSDK ● Build an App Engine application using PHP ○ Hello GAE Example ○ Handling Forms ○ Using Static File ( CSS and Images ) ● Uploading your application ○ Regist、Create、Upload
  • 15.
    Registering an appon GAE Go to https://appengine.google.com/ or this and log in with your Google account, then create application.
  • 16.
  • 17.
    Uploading the Application 1.Uploading via command line ○ appcfg.py update helloworld/ 2. Use the App Engine Launcher 3. Using Git http://your_app_id.appspot.com
  • 18.