PHPÓëACCESSÁ´½ÓµÄÀà
[php]
<?php
--------------------------------------------------------------------
//FileName:class.php
//Summary: AccessÊý¾Ý¿â²Ù×÷Àà
//Author: forest
//CreateTime: 2006-8-10
//LastModifed:
//copyright (c)2006
//http://freeweb.nyist.net/~chairy
//chaizuxue@163.com
// ʹÓ÷¶Àý£º
//$databasepath="database.mdb";
//$dbusername="";
//$dbpassword="";
//include_once("class.php");
//$access=new Access($databasepath,$dbusername,$dbpassword);
--------------------------------------------------------------------
class Access
{
var $databasepath,$constr,$dbusername,$dbpassword,$link;
function Access($databasepath,$dbusername,$dbpassword)
{
$this->databasepath=$databasepath;
$this->username=$dbusername;
$this->password=$dbpassword;
$this->connect();
}
function connect()
{
$this->constr="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath($this->databasepath);
$this->link=odbc_connect($this->constr,$this->username,$this->password,SQL_CUR_USE_ODBC);
 
Ïà¹ØÎĵµ£º
ÕæµÄÊDz»Óò»ÖªµÀ£¬ÆäʵÎÒÃÇÊìϤµÄ PHP »¹ÓкܶàºÃ¶«Î÷ûÓз¢¾ò¡£¿´
µ½ÕâƪÎÄÕÂ
£¬µ±Ê±¾ÍÀá±¼Á˺ü¸»Ø£¬ÖصãÍƼöÏ£¬Ë³±ãÎÒ×Ô¼ºÒ²×ö¸öÕûÀí¡£
sys_getloadavg()
Õâ¸öº¯Êý
·µ»Øµ±Ç°ÏµÍ³µÄ¸ºÔؾùÖµÐÅÏ¢
£¨µ±È» Windows
ϲ»ÊÊÓã©£¬ÏêϸÎĵµ¿ÉÒÔ·ÔÄ PHP µÄÏà¹ØÎĵµ¡£ÎĵµÖÐÓжÎʾÀý´úÂ룬»ù±¾ÉÏÒ²¾ÍÄÜ¿´³öËüµÄÓÃ;ÁË¡ ......
·ÖÎöÍøÕ¾½á¹¹
¼ÈÈ»ÎÒÃÇÒѾ°²×° CI £¬ÎÒÃÇ¿ªÊ¼Á˽âËüÈçºÎ¹¤×÷¡£
¶ÁÕßÒѾ֪µÀ CI ʵÏÖÁËMVCʽÑù¡£ ͨ¹ý¶ÔĿ¼ºÍÎļþµÄÄÚÈݽøÐзÖÀà, ¶ø²»ÊÇÈôúÂë´ó¿é´ó¿éµØ¾À¼¯ÔÚÒ»Æð¡£
ÕâÒ»Õ£¬ÎÒÃǽ«»á¶Ô MVC ÀíÂÛ×ö¸ö¼ò¶ÌµÄ½éÉÜ, È»ºóÔÙ½éÉÜ CI µÄMVCʵÏÖ·½Ê½¡£ÌرðµØ£¬ÒªÁ˽âÄÇЩĿ¼ºÍÎļþÈçºÎ»¥Ïཻ»»ÐÅÏ¢£¿ÍøÕ¾½á¹¹ÊÇÔõÑùµÄ£¿ÒÔ ......
<?PHP
/**
* HTTP Protocol defined status codes
* @param int $num
*/
function https($num) {
$http = array (
100 => "HTTP/1.1 100 Continue",
101 => "HTTP/1.1 101 Switching Protocols",
200 => "HTTP/1.1 200 OK",
201 => "HTTP/1.1 201 Created",
202 => "HTTP/1.1 202 ......
http://blog.developers.api.sina.com.cn/?p=264
×î½üMemcacheDBÓʼþÁбíºÍÑз¢²¿ÄDZßͬʱ¨¸æPHPµÄmemcache¿Í»§¶Ëphp-memcache¾³£³ö ÏÖ¶ÏÁ¬½ÓµÄÎÊÌ⣺
PHP Notice: Memcache::get(): Server ………. (tcp 11211) failed with: Failed reading line from stream (0) with pecl-memcache 3.*
&h ......
setcookie("cookiename","cookievalue",time()+3600,"/path",".php100.com",1);
cookiename:
ÊÇcookieµÄÃû×Ö£¬¿ÉÒÔͨ¹ýcookienameµ÷ÓôËcookie£¬$_COOKIE["cookiename"]£»
cookievalue:
ÊÇcookieµÄ³õʼֵ£»
time():
·µ»ØUNIXʱ¼ä´Á£¬¼´´Ó1970Äê1ÔÂ1ÈÕ£¨UTC/GMT ......