php while Óëdo whileµÄÇø±ð
±¾½Ì³ÌÀ´½²Ò»Ï¹ØÓÚÔÚphp±à³ÌÖг£Óõ½µÄÑ»·Óï¾ädo whileÓëwhileµÄÇø±ð°É£¬while Êǵ±Ìõ¼þΪÕæÊDzÅÖ´Ðжødo whileÖÁÉÙ»áÖ´ÐÐһϣ¬ÏÂÃæÎÒÃǾÍÀ´¿´¿´
do {
}while(Ìõ¼þ)
¿´do whileµÄʵÀý°É¡£
<?
$a =10;
do {
echo $a;
}while ($a>11)
ÕâÀï»áÊä³ö10;È»ºóÑ»·ÖÕÖ¹£¬ÄÇôÎÒÃÇÀ´¿´¿´whileµÄʵÀý°É¡£
$a=10;
while($a>11){
echo $a;
}
ÕâÀï²»»áÓÐÈκÎÊä³ö£¬ÏÖÔÚ¸÷λÃ÷°×ÊÇʲôÒâ˼ÁË°É¡£
Ïà¹ØÎĵµ£º
ÔÚʵ¼ÊµÄ³ÌÐò¿ª·¢ÖУ¬Ö´ÐÐ×Ö·û´®Ìæ»»²Ù×÷ÊÇÒ»¼þ·Ç³£¾³£µÄÊ£¬¶Ô
str_replace
º¯ÊýµÄʵÓÃÒ²»á·Ç³£Æµ·±¡£
Õâ¶Îʱ¼äÔÚ¿´¡¶
PHP
ºÍ
MySQL Web
¿ª·¢¡·Ò»Êé¿´µ½
str_replace
½²½â£¬Ò»¶ÎСÌáʾдµ½£º¿ÉÒÔΪ
str_replace
µÄÈý¸ö¶¼Ê¹ÓÃÊý×é´«È룬µ«½²½â±È½Ï¼òµ¥£¬ÓÚÊǾö¶¨×Ô¼ºµÄÊÔÑé ......
Output Control
º¯Êý¿ÉÒÔÈÃÄã×ÔÓÉ¿ØÖƽű¾ÖÐÊý¾ÝµÄÊä³ö¡£Ëü·Ç³£µØÓÐÓã¬ÌرðÊǶÔÓÚ£ºµ±ÄãÏëÔÚÊý¾ÝÒѾÊä³öºó£¬ÔÙÊä³öÎļþÍ·µÄÇé¿ö¡£Êä³ö¿ØÖƺ¯Êý²»¶ÔʹÓÃ
header()
»ò
setcookie(),
·¢Ë͵ÄÎļþÍ·ÐÅÏ¢²úÉúÓ°Ïì
,
Ö»¶ÔÄÇЩÀàËÆÓÚ
echo()
ºÍ
PHP
´úÂëµÄÊý¾Ý¿éÓÐ×÷Óá£
ÎÒÃÇÏȾÙÒ»¸ö¼òµ¥µÄÀý×Ó£¬Èôó¼Ò¶Ô ......
×î½üÐÂÂòÁ˸öµçÄÔ£¬ÏµÍ³ÊÇwindows7£¬window7ÔÚ½çÃ棬¹¦ÄÜ·½Ã涼ͦÈÃÈËÂúÒâµÄ£¬¸Ð¾õºÜˬ£¬²»Ë¬µÄÊÇÓÖÒªÖØа²×°»·¾³ÁË¡£
ËùÓÐÈí¼þ¾ù°²×°ÔÚF:\server\ÏÂ
apacheĿ¼£ºF:\server\apache2.2
phpĿ¼£ºF:\server\php
msyqlĿ¼£ºF:\server\mysql
Ò»¡¢°²×°apache
°²×°apacheµÄ°æ±¾ÊÇ£ºhttpd-2.2.15-win32-x86-no_ssl.msi
° ......
Ïл°ÉÙ˵,ÏȽ«ËüÃÇ´ò°ü³ÉÒ»¸öÎļþ¾Í½Ðfun.php°É
< ?php
function passport_encrypt($txt, $key) {
srand((double)microtime() * 1000000);
$encrypt_key = md5(rand(0, 32000));
$ctr = 0;
$tmp = ''; ......
½ñÌì×°Á˸öBerkeley 5.0.21½øÐвâÊÔ¡£
˳Àû±àÒëÁË×Ô´øµÄphp_db4Ä£¿éºó£¬½øÐвâÊÔ¡£·¢ÏÖdel²Ù×÷±¨´í£º
illegal flag specified to DB->del
<?php
dl('db4.so');
$db = new Db4();
$db->open(null, 'info.db', 'info');
$db->put('key', 'value');
var_dump($db->del('key'));
$db->close();
$db ......