/************************************************************************************* * SQLAdmin v2.0 - An SQL Administration User Interface for the Web * * Copyright (C) 1997-98 Alessandro Vernet
echo "Connecting as MySQL\n"; $connection1 = mysql_connect('localhost', 'mysql', '') or die($php_errormsg); echo "connection1 is $connection1\n"; echo "Selecting test for mysql user\n"; mysql_select_db('test', $connection1) or
在CI架構下面實現了自訂菜單功能.寫了一個model,一個類庫.順便附帶access_token的實現方式phpclass Makemenu{ public $menustr; public function __construct(){ } public function init(){ $this->dolist(); return $this->setmenu(); } private function dolist(){
下面的 PHP Excel 處理類中,包含 Excel 讀寫、匯入匯出等相關的類,列表如下: PHP Excel Reader classes 1. Read Excel Spreadsheets using COM Umesh Rai (India) 2. Read Excel Binary .XLS Files in Pure PHP Ruslan V. Uss (Russian Federation) 3. Read Excel Spreadsheets using ODBC
phpfastcache是一種高效能,分布式對象緩衝系統,通用性,可用於加快動態Web應用程式,減輕資料庫負載。phpfastcache把資料庫負載到幾乎為零,得到更快的頁面載入時間的使用者,更好的資源使用率。它是簡單而強大的。減少資料庫查詢php // In your config file include("phpfastcache/phpfastcache.php"); phpFastCache::setup("storage","auto"); // phpFastCache
1.建立模型 a.加入基類 use yii/base/Model b.建立類繼承自基類 c.建立所需要的變數 e.定義規則 f.注意裡面用[]括起來 例如: phpnamespace app\models;use yii\base\Model;class EntryForm extends Model{ public $name; public $email; public function rules() { return [