Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHPÔÓ¼Ç

 preg_replace -- Ö´ÐÐÕýÔò±í´ïʽµÄËÑË÷ºÍÌæ»»
array_push --  ½«Ò»¸ö»ò¶à¸öµ¥ÔªÑ¹ÈëÊý×éµÄĩ⣨ÈëÕ»£©
preg_match -- ½øÐÐÕýÔò±í´ïʽƥÅä
exif_imagetype($file) ---ͼÏñÀàÐÍ£»
echo "<SCRIPT LANGUAGE='JavaScript'>alert('µÃµ½');history.back();</SCRIPT>";
exit;
date_default_timezone_set('PRC');  ±±¾©Ê±¼ä£»
bool file_exists ( string filename)
Èç¹ûÓÉ filename Ö¸¶¨µÄÎļþ»òĿ¼´æÔÚÔò·µ»Ø TRUE£¬·ñÔò·µ»Ø FALSE¡£
<?php
$text = "\t\tThese are a few words :) ...  ";
echo trim($text);           // "These are a few words :) ..."
echo trim($text, " \t."); // "These are a few words :)"
// trim the ASCII control characters at the beginning and end of $binary
// (from 0 to 31 inclusive)
$clean = trim($binary, "\x00..\x1F");
?>
mysql À©Õ¹
<?php if(extension_loaded('mysql')?>
bool is_writable ( string filename)
is_writable -- Åжϸø¶¨µÄÎļþÃûÊÇ·ñ¿Éд
array_values() ·µ»Ø input Êý×éÖÐËùÓеÄÖµ²¢¸øÆ佨Á¢Êý×ÖË÷Òý
$_GETÊý×éÖд«µÝµÄÊÇͨ¹ýurl´«µÝµÄÖµ£¬pageÊÇÊý×éµÄϱê
ÀýÈ磺
http://www.xx.cn/index.php?id=1&page=5
ÄÇô´«µÝ¹ýÀ´µÄ$_GETÊý×éÖÐ
$_GET['id']=1
$_GET['page']=5
globalÊÇÈ«¾Öº¯Êý
$_POST£¬$_GET,ÕâÁ½¸öº¯ÊýÊÇÌá½»±íµ¥Ê±ºòÓõ½
Ö»ÊÇ$_GETÌá½»µÄ¶«Î÷»áÏÔʾÔÚURLÖУ¬¶øÇÒ»áÓÐ×Ö½ÚÏÞÖÆ
$_POSTÌá½»µÄ¶«Î÷²»»áÏÔʾÔÚURLÖУ¬±È½Ï°²È«
section ¼ò½é
section:
sectionµÄ²úÉúÊÇΪ½â¾öforeachµÄ²»×ãµÄ£¬ÓëforeachÒ»Ñù£¬ËüÓÃÓÚÉè¼ÆÄ£°åÄÚµÄÑ­»·¿é£¬Ëü½ÏΪ¸´ÔÓ£¬¿É¼«´ó³ÌÐòÉÏÂú×ã³ÌÐòÐèÒª£¬ËùÒÔÔÚ³ÌÐòÖÐÎÒÏ°¹ßʹÓÃËü¶ø²»Ê¹ÓÃforeach,»ù±¾Ô­ÐÎΪ£º
{section name = name loop = $varName[, start = $start, step = $step, max = $max, show = true]}
name: sectionµÄÃû³Æ£¬²»ÓüÓ$
$loop: Ҫѭ»·µÄ±äÁ¿£¬ÔÚ³ÌÐòÖÐҪʹÓÃassign¶ÔÕâ¸ö±äÁ¿½øÐвÙ×÷¡£
$start: ¿ªÊ¼Ñ­»·µÄϱ꣬ѭ»·Ï±êĬÈÏÓÉ0¿ªÊ¼
$step: ÿ´ÎÑ­»·Ê±Ï±êµÄÔöÊý
$max: ×î´óÑ­»·Ï±ê
$show: booleanÀàÐÍ£¬¾ö¶¨ÊÇ·ñ¶ÔÕâ¸ö¿é½øÐÐÏÔʾ£¬Ä¬ÈÏΪtrue
ÕâÀïÓиöÃû´ÊÐèҪ˵Ã÷£º
Ñ­»·Ï±꣺ʵ¼ÊËüµÄÓ¢ÎÄÃû³ÆΪindex£¬ÊÇË÷Òýµ


Ïà¹ØÎĵµ£º

PHPÂëÅ©½ø»¯Ê·3

Mysql×ÔÉíѧϰ
1.Êý¾Ý¿â³£ÓõÄ×Ö¶ÎÀàÐÍ£º
ÕûÊýÐÍ: TINYINT(0-255×Ö¶Î), SMALLINT(´óµã), INT(¸ü³¤), BIGINT;
СÊýÐÍ: FLOAT, BOUBLE, DECIMAL(M(ÕûÊý),D£¨Ð¡Êý£©);
×Ö·ûÐÍ: CHAR(¹Ì¶¨), VARCHAR(µ¯ÐÔ×Ö·ûÐÍ£¬¼õ»ºÈÝÁ¿);£¨××Ö·ûΪ255£©
ÈÕÆÚÐÍ: DATETIME£¨ÈÕÆÚʱ¼ä£©, DATE£¨ÈÕÆÚ£©, TIMESTAMP£¨ÈÕÆÚת»¯ÎªÊý×Ö.¾«¶È ......

PHPÂëÅ©½ø»¯Ê·5

1.ËùÓеÄÊý¾Ý¶¼Ó¦¸ÃÒþ²ØÔÚËùÔÚµÄÀàµÄÄÚ²¿¡£
2.ÀàµÄʹÓÃÕß±ØÐëÒÀÀµÀàµÄ¹«¹²½Ó¿Ú£¬µ«À಻ÄÜÒÀÀµËûµÄʹÓÃÕß¡£
3.¾¡Á¿¼õÉÙÀàЭÒéÖеÄÏûÏ¢¡£
4.ʵÏÖËùÓÐÀ඼Àí½âµÄ×î»ù±¾µÄ½Ó¿Ú¡££¨¿½±´²Ù×÷£¬°üÀ¨É±´ºÍdz¿½±´£©£¬ÏàµÈÐÔÅжϣ¬ÕýÈ·Êä³öÄÚÈÝ£¬´ÓASC2ÃèÊö½âÎöµÈµÈ¡£
5.²»°ÑʵÏÖϸ½ÚÈç·ÀÖ¹¹«¹²´úÂëµÄ˽Óк¯Êý.·Åµ½ÀàµÄ¹²Óнӿ ......

ÈçºÎµ÷ÊÔPhp?

×î¼òµ¥µÄË­¶¼»áµÄµ÷ÊÔ(ÊÇô?):
±¾À´°²×°phpÊÇûÎÊÌâ Ò²ÄÜÓÃÁË µ«ÊÇÓÖ´ÓÊéÉϳ­ÁËһЩ´úÂëÀ´·¢ÏÖ²»ÄÜÓÃ, ÄǾÍÓÃÑÛ¾¦×ÐϸµÄ¶Ô×ÅÊé±¾¾ÀÕýһϴúÂë¹þ ¿Ï¶¨ÊÇÄã³­´íÁË ÒªÃ´ÊÇÓ¡Ë¢´íÁË
±ÈÈç 1(yi)¸úl(el) 0(ling)¸úO(´óдo)µÈ
±ðЦ¹þ ÕæµÄÓÐÈ˳­´í¹ý »¹ÈÃÎÒ¹ýÈ¥°ïæµ÷ÊÔ ¹ýÈ¥ÎÒ¼Èë½øÈ¥(ËûµÄû±£´æ) ¾ÍÈ«¶ÔÁË
ÑÔ¹éÕý´«
Q: "Ϊ ......

PHP·¾¶ÎÊÌâ

<?
php define('__TYPECHO_ROOT_DIR__', dirname(__FILE__));
define('__TYPECHO_PLUGIN_DIR__', '/usr/plugins');
@set_include_path(get_include_path() . PATH_SEPARATOR . __TYPECHO_ROOT_DIR__ . '/var' . PATH_SEPARATOR . __TYPECHO_ROOT_DIR__ . __TYPECHO_PLUGIN_DIR__);
ÄÜÏêϸµÄ½âÊÍÕâ¸öº¯ÊýÂ𣿵±È»Î ......

phpС±Ê¼Ç


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ