ÍƼöСÇÉµÄ PHP ¿ò¼Ü
ÍƼöСÇÉµÄ PHP ¿ò¼Ü
CodeIgniter ÊÇÒ»¸öСÇɵ«¹¦ÄÜÇ¿´óµÄ PHP ¿ò¼Ü£¬×÷Ϊһ¸ö¼òµ¥¶ø“ÓÅÑÅ”µÄ¹¤¾ß°ü£¬Ëü¿ÉÒÔΪ PHP ³ÌÐòÔ±½¨Á¢¹¦ÄÜÍêÉÆµÄ Web Ó¦ÓóÌÐò¡£Èç¹ûÄãÊÇÒ»¸öʹÓù²ÏíÖ÷»ú£¬²¢ÇÒΪ¿Í»§ËùÒªÇóµÄÆÚÏÞ¶ø·³ÄյĿª·¢ÈËÔ±£¬Èç¹ûÄãÒѾÑá¾ëÁËÄÇЩɵ´ó±¿´ÖµÄ¿ò¼Ü.
ÀïÃæ°üº¬ÁËÈÕ³£ËùÐèÒªµÄÀà¿â£¬´úÂ뾫¼ò¡£ºÜÊʺÏÈÕ³£¿ª·¢Å¶£¡
Àà¿â²Î¿¼
»ù×¼²âÊÔÀà
ÈÕÀúÀà
¹ºÎï³µÀà
ÅäÖÃÀà
Êý¾Ý¿âÀà
Email Àà
¼ÓÃÜÀà
ÎļþÉÏ´«Àà
±íµ¥ÑéÖ¤Àà
FTP Àà
HTML ±í¸ñÀà
ͼÏñ´¦ÀíÀà
ÊäÈëºÍ°²È«Àà
×°ÔØÆ÷Àà
ÓïÑÔÀà
Êä³öÀà
·ÖÒ³Àà
Session Àà
Trackback Àà
Ä£°å½âÎöÆ÷Àà
ÅÅ°æÀà
µ¥Ôª²âÊÔÀà
URI Àà
User-Agent Àà
XML-RPC Àà
Zip ±àÂëÀà
Ïà¹ØÎĵµ£º
The define() function defines a constant.
define()º¯ÊýµÄ×÷ÓÃÊÇ£º¶¨ÒåÒ»¸ö³£Á¿¡£
Constants are much like variables, except for the following differences:
³£Á¿[constant]Óë±äÁ¿[variable]ÓкܶàÏàËƵĵط½£¬Òò´Ë£¬ºÜÈÝÒ×»ìÏý£»ÏÂÃ棬ÎÒÃÇÁоÙһϳ£Á¿[constant]Óë±äÁ¿[variable]Ö®¼äµÄ²»Í¬µã£º
A const ......
php»ù´¡Ñ§Ï°ÒѾ²î²»¶àÁË,µ«ÊÇΪ¼ìÑé×Ô¼ºµÄѧϰÕÆÎÕÇé¿ö,°Ñphp»ù´¡ÖªÊ¶»Ø¹Ë¸´Ï°ÁËÒ»ÏÂ
µÚÒ»¸öPHP³ÌÐò
<?php
echo "Hello World!";
?>
1 ×¢ÊÍ
1.1¶àÐÐ
/*
xxxx
*/
1.2µ¥ÐÐ
//xxxxx
2. ¸³Öµ
$a = 'test';
2.1 ¼ì²é±äÁ¿ÊÇ·ñÒÑÉùÃ÷
isset($a)
2.2 ÊͷűäÁ¿
unset($a);
2.3 ¾² ......
ÿ¸öÈ˵Äѧϰ·½Ê½²»Í¬£¬Ð´ÕâƪÎÄÕµÄÄ¿µÄÊÇ·ÖÏíÒ»ÏÂ×Ô¼ºµÄѧϰ¹ý³Ì£¬½ö¹©²Î¿¼£¬²»ÒªÒ»Î¶µÄÓñðÈ˵Äѧϰ·½·¨£¬ÕÒ¶Ô×Ô¼ºÓÐÓõÄѧϰ·½Ê½
¡¡¡¡¾³£ÔÚijЩÂÛ̳ºÍQQȺÀï¿´µ½Ò»Ð©ÅóÓÑ»áÎÊ“ÔõÑù²ÅÄÜѧºÃPHP£¬ÔõÑù²ÅÄÜѧºÃ***ÓïÑÔ ”£¬µ«±ðÈ˻شð×î¶àµÄÊÇ£º´Ó×òµ¥”µÄ¿ªÊ¼¡£
¡¡¡¡Õâ¸ö¼òµ¥Ò²ÐíÕæµÄ²»¼òµ ......
PHPº¯Êýsetcookie()ÓÃÀ´ÉèÖÃcookie.
setcookie()º¯Êý±ØÐëÔÚ<html>±êǩ֮ǰµ÷Óã¬Óï·¨ÊÇsetcookie (name, value, expire,
path, domain) ÀýÈ磺
<?php
setcookie(”user”, “Alex
Porter”, time()+3600);
?>
<?php
setcookie(”url”, “http://www.mianwww. ......
ÔÚÍùPHP SessionÀïÃæ±£´æÐÅϢ֮ǰ£¬ÐèÒªÊ×ÏÈʹÓÃsession_start()º¯ÊýÀ´Æô¶¯session,
Õâ¸öº¯Êý±ØÐëÔÚ<html>±êǩ֮ǰµ÷ÓᣴúÂëÈçÏ£º
<?php session_start(); ?>
<html>
<body>
</body>
</html>
ÔÚSessionÆô¶¯ÒԺ󣬿ÉÒÔʹÓÃPHP $_SESSION±äÁ¿À´»ñÈ¡ºÍÉèÖÃsession±äÁ¿£¬ÊµÀý´ú ......