2012年3月28日 星期三

使用git與PHP Fog雲端檔案連線教學

沒有留言:

要測試Facebook API時,想用臨時的網域測試是否api可以正確執行

所以就去PHP Fog申請了一個免費的帳號用來測試

然而他的檔案管理是用git的方式去存取

所以我們要建立git存取時所需要的ssh key

共有三個步驟 
  1. 產生ssh key
  2. 儲存產生的sshPHP Fog
  3. git連線測試

2012年2月9日 星期四

2012年2月8日 星期三

Facebook PHP SDK 3.0 Permissions參數說明(Facebook PHP SDK 3.0 Permissions Parameter Explanation)

沒有留言:

scope(存取範圍):https://developers.facebook.com/docs/reference/api/permissions/

(*)備註:預設存取(Default Value)

AWS PHP SDK缺少DOM套件解決辦法

沒有留言:
服務平台:Amazon Web Service(AWS)
環境:Amazon Elastic Compute Cloud (Amazon EC2)

工具:putty

在執行「/aws-sdk-for-php/_compatibility_test/sdk_compatibility_test.php」可以測得出使用AWS套件的最低需求為何,但把套件上傳至EC2時發現缺少的「DOM(What You Have:Disabled)」的套件,所以我們必須要在EC2安裝此套件

Minimum Requirements

Test Should Be What You Have
PHP 5.2 or newer 5.3.8
cURL 7.15.0 or newer, with SSL 7.21.7 (OpenSSL/1.0.0e)
SimpleXML Enabled Enabled
DOM Enabled Disabled
SPL Enabled Enabled
JSON Enabled Enabled
PCRE Enabled Enabled
File System Read/Write Enabled Enabled

AWS S3 PHP SDK說明

沒有留言:

S3 SERVER區域參數(S3 Server Region Parameter):

  • 北維吉尼亞州 & 華盛頓州:(US-Standard (Northern Virginia & Washington State) Region.)
    • REGION_US_E1
    • REGION_VIRGINIA
    • REGION_US_STANDARD
  • 北加州(US-West 1 (Northern California) Region.)
    • REGION_US_W1
    • REGION_CALIFORNIA
  • 俄勒岡州(US-West 2 (Oregon) Region.)
    • REGION_US_W2
    • REGION_OREGON
  • 愛爾蘭(EU (Ireland) Region.)
    • REGION_EU_W1
    • REGION_IRELAND
  • 新加坡(Asia Pacific (Singapore) Region.)
    • REGION_APAC_SE1
    • REGION_SINGAPORE
  • 日本(Asia Pacific (Japan) Region.)
    • REGION_APAC_NE1
    • REGION_TOKYO
  • 南非(South America (Sao Paulo) Region.)
    • REGION_SA_E1
    • REGION_SAO_PAULO
  • United States GovCloud Region.
    • REGION_US_GOV1
    • REGION_US_GOV1_FIPS

acl檔案權限控制參數(ACL File Privilege Control Parameter):

  • ACL_PRIVATE
    • 只有擁有者才可以讀取/寫入(Owner-only read/write.)
  • ACL_PUBLIC
    • 擁有者可以讀取/寫入,任何人皆可以讀取( Owner read/write, public read.)
  • ACL_OPEN
    • 任何人皆可以讀/寫(Public read/write.)
  • ACL_AUTH_READ
    • 擁有者可以讀取/寫入,授權者可以讀取(Owner read/write, authenticated read.)
  • ACL_OWNER_READ
    • 容器擁有者可以讀取(Bucket owner read.)
  • ACL_OWNER_FULL_CONTROL
    • 容器擁有者擁有完整控制權(Bucket owner full control.)

 儲存類型(Storage Type):

  • STORAGE_STANDARD
    • 標準(Standard storage redundancy.)
  • STORAGE_REDUCED
    • 減少冗餘(Reduced storage redundancy.)

支援檔案類型(Support File mime type:From AWS S3):


  • text/plain
  • image/jpeg
  • image/png
  • image/gif
  • image/bmp
  • image/tiff
  • text/rtf
  • application/msword
  • application/zip
  • audio/mpeg
  • application/pdf
  • application/x-gzip
  • application/x-compressed
  • application/zip

ADS