Skip to content

Instantly share code, notes, and snippets.

@girvan
Created March 22, 2012 03:21
Show Gist options
  • Save girvan/2155396 to your computer and use it in GitHub Desktop.
Save girvan/2155396 to your computer and use it in GitHub Desktop.
//一開始總是必要的
require '/home/www/config.php';
//或是這樣
require '../config.php'; //但這樣子在crontab不能跑
//當然,接下來的路徑就使用變數或常數來寫程式
require SOPILI_PATH.'/lib/db_connection.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment