PHPÈçºÎÉèÖá¢È¡µÃ¡¢É¾³ýCookieÖµ£¿
PHPº¯Êýsetcookie()ÓÃÀ´ÉèÖÃcookie.
setcookie()º¯Êý±ØÐëÔÚ<html>±êǩ֮ǰµ÷Óã¬Óï·¨ÊÇsetcookie (name, value, expire,
path, domain) ÀýÈ磺
<?php
setcookie(”user”, “Alex
Porter”, time()+3600);
?>
<?php
setcookie(”url”, “http://www.mianwww.com”, time()+3600);
?>
Õâ¸öÀý×Ó´´½¨ÁËÒ»¸öÃû×ÖΪurlµÄcookie£¬²¢¸³ÖµÎª”http://www.mianwww.com”, ²¢ÇÒÉèÖÃʧЧÈÕÆÚΪһ¸öСʱºò
×¢Ò⣺cookieµÄÖµÔÚ´«Êä¹ý³ÌÖÐÊÇURLencodedµÄ£¬ÊÕµ½µÄʱºòÒ²»á×Ô¶¯½âÂë¡£Èç¹û²»ÐèÒªURLencoded¿ÉÒÔʹÓÃ
setrawcookie´úÌæ
PHP $COOKIE±äÁ¿ÓÃÀ´È¡µÃÒ»¸öcookieÖµ£¬ÏÂÃæµÄÀý×ÓÖÐÎÒÃÇÈ¡µÃÁËÃû×ÖΪurlµÄcookieÖµ²¢ÏÔʾÔÚÁËÒ³ÃæÉÏ£º
<?php
// Print a cookie
echo $_COOKIE["url"];
// A way to view all cookies
print_r($_COOKIE);
?>
ɾ³ýÒ»¸öCookieÖµ£¬¿ÉÒ԰ѹýÆÚÈÕÆÚÉèÖõ½Ò»¸öÒѾ¹ýÈ¥µÄʱ¼ä
´úÂëÈçÏ£º
<?php
// set the expiration date
to one hour ago
setcookie(”user”, “”,
time()-3600);
?>
<?php
// ÉèÖùýÆÚʱ¼ä»áÒ»¸öСʱ֮ǰ
setcookie(”user”, “”, time()-3600);
?>
Ïà¹ØÎĵµ£º
ʹÓÃpopen½áºÏSHELLÃüÁîÒ²¿ÉÒÔʵÏÖ¶à½ø³Ì²¢·¢±à³Ì¡£
ʵÀýÈçÏ£º
<?php
//b.phpÎļþ
$file = 'testdir/file.txt';
for ($i=0;$i<10;$i++){
$fp = fopen($file,'a+');
fputs($fp, $i.'\r\n');
fclose($fp);
sleep(1);
}
?> ......
°²×°»·¾³Îªwindows²Ù×÷ϵͳ£¬ÓÉÓÚÎÒͬʱÐèÒªasp+mssql£¨access£©µÄµ÷ÊÔ»·¾³£¬ËùÒÔ¾ÍÔÚwindowsƽ̨ÏÂÔö¼Óapache+php+mysqlµÄµ÷ÊÔ»·¾³£¬Ë«»·¾³Í¬Ê±´æÔÚ£¬·½±ãÎÒËæʱÇл»¡£
ApacheµÄ°²×°ÓëÅäÖÃ
´ò¿ªapache¹Ù·½ÍøÕ¾ http://archive.apache.org/dist/httpd/binaries/ ......
¡¡¡¡ËµÊµÔڵģ¬ÏÖÔÚµÄweb¿ª·¢È·ÊµºÜ»ð£¬µ«×ܾõµÃ¶ÔÎÒÀ´ËµÃ»ÓÐʲôÎüÒýÁ¦¡£Ëµµ½µ×£¬²»¹ýÊÇ×ö¸öÍøÕ¾ÂÓÐʲôÒâ˼£¿¾ÍËã×ö¸öÌÔ±¦Íø£¬ËãºÜÅ£ÁË°É£¬ÄÇÓÖÔõôÑù£¬²»¹ý¾ÍÊÇʵÏÖһЩ½»»¥²Ù×÷µÄÍøÕ¾°ÕÁË£¬×ܾõµÃ£¬Ã»Óж¯Á¦¡£
¡¡¡¡Æäʵ£¬´ÓÄÚÐÄÉî´¦£¬»¹ÊǾõµÃ×öÓÎÏ·ºÜÓÐÒâ˼¡£ÍæÓÎÏ·¸üÓÐÒâ˼£¬×ö³öƯÁÁµÄÓÎϷЧ¹û²ÅÊǷdz£Ë§µÄ¡£¾¡¹ ......
×òÌìÍíÉÏÒ»Ö±ÔÚ×ÁÄ¥Flex,Ïëͨ¹ýDataGrid°ÑMySQLÀïÃæµÄÊý¾Ý¸ø¶Á³öÀ´£¬ÆÚ¼ä³öÏÖÁ˼¸¸öСÎÊÌ⣬¼Ç¼ÏÂ~~
1.µÚÒ»´Î½øÐÐÁ¬½ÓÊý¾Ý·þÎñ(Data-Connect to Data/Service-PHP-Browse)ʱ,»á³öÏÖ°²×°Zend FrameWork,Ñ¡Ôñok,²»ÒªÊºóÔÙÈ¥ÍøÕ¾ÏÂÔØZendAMF,Õâ¸öÀïÃæ»áÉÙһЩ¶«Î÷.
2.Data-Bind to DataÊ ......
ÆäʵÕâ¸öµÄÖ÷Òª²¿·Ö²¢²»ÊÇÒ»¸öjquery£¬µ«ÊDZØÐëʹÓõ½
php³ÌÐò²¿·Ö£¬Ò²Ö»ÐèÒªÕâ¸öÒ»¸öphp³ÌÐò¾Í¿ÉÒÔÁË
www.corange.cnÇײâ
<?php
header("Content-Type: text/html; charset=utf-8");
@header( "Cache-Control: no-cache, must-revalidate" );
@header( "Pragma: no-cache" );
@header( "Last-Modified: " ......