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

PHPÎÞÏÞ·ÖÀàµÄ¾ßÌåÔ­Àí·ÖÎö

¡¡¡¡¶ÔÓÚ³õѧPHPÓïÑÔµÄÅóÓÑÀ´Ëµ£¬PHP»¹ÓкܶණÎ÷ÐèÒªÉîÈëµÄ̽¾¿¡£Ö»ÓÐÔÚ²»¶ÏµÄÎÊÌâ´¦ÀíÖвÅÄÜÕÆÎÕÆäÖеÄÕæÖ¿¡£Ê²Ã´ÊÇPHPÎÞÏÞ·ÖÀàÄØ?¾ÍÏñwindowsÏÂн¨Ò»¸öÎļþ¼Ð£¬ÔÚн¨µÄÎļþ¼ÐÏÂÓÖ¿ÉÒÔн¨Ò»¸öÎļþ¼Ð£¬ÕâÑùÎÞÏÞÑ­»·ÏÂÈ¥£¬ÎÞÏÞ·ÖÀàÒ²ÊÇÕâÑù£¬¸¸Àà¿ÉÒÔ·Ö³öËü×ÓÀ࣬×ÓÀàÓÖ¿ÉÒÔ·Ö³öËüµÄ×ÓÀ࣬ÕâÑùÒ»Ö±ÎÞÏÞÑ­»·ÏÂÈ¥¡£
¡¡¡¡ÄÇPHPÓÖÊÇÈçºÎʵÏÖËüµÄÎÞÏÞ·ÖÀàµÄÄØ?ÈçºÎ°ÑËüµÄ¸÷¸ö·ÖÀàÒ»Ò»ÁгöÀ´ÄØ?
¡¡¡¡Ê×ÏÈÎÒÃǼÙÉèÓÐÕâÑùµÄÒ»¸öÈý¼¶·ÖÀ࣬ÐÂÎÅ→PHPÐÂÎÅ→PHP6.0³öÀ´ÁË¡£
¡¡¡¡Èç¹ûÎÒÃÇÒª²éÕÒ“PHP6.0³öÀ´ÁË”ÕâÌõÐÂÎÅ£¬ÎÒÃÇÏȵã»÷ÐÂÎÅ£¬È»ºóÔÙµã»÷PHPÐÂΞͿÉÒÔ²é³öÀ´ÁË£¬Ò²¾ÍÊÇ˵ÎÒÃÇ¿ÉÒÔͨ¹ý×游ÀàÒ»¼¶Ò»¼¶µØÍùÏÂÕÒ£¬·´¹ýÀ´ÎÒÃÇÖ»ÒªÖªµÀÒ»¸ö×ÓÀàµÄ¸¸À࣬¾Í¿ÉÒÔ°ÑËü²éÕÒ³öÀ´ÁË¡£ÕâÑùÎÒÃÇÔÚÉè¼ÆÊý¾Ý¿âʱ¾Í¿ÉÒÔ¶àÉè¼ÆÒ»¸ö¸¸ÀàidµÄ×ֶξͿÉÒÔʵÏÖPHPÎÞÏÞ·ÖÀàµÄ¹¦ÄÜÁË¡£
¡¡¡¡//ÎÒÃǽ¨Ò»¸ö±í"class"
¡¡¡¡CREATE TABLE `class` (
¡¡¡¡`id` int(11) NOT NULL auto_increment COMMENT '·ÖÀàid',
¡¡¡¡`f_id` int(11) NOT NULL COMMENT '¸¸id',
¡¡¡¡`name` varchar(25) collate gbk_bin NOT NULL COMMENT '·ÖÀàÃû³Æ',
¡¡¡¡PRIMARY KEY (`id`)
¡¡¡¡) ENGINE=MyISAM DEFAULT CHARSET=gbk COLLATE=gbk_bin AUTO_INCREMENT=1 ;
¡¡¡¡//Ê×ÏÈÎÒÃÇÍùÊý¾Ý¿âÀï²åÈë‘ÐÂÎÅ’Õâ¸ö´ó·ÖÀ࣬ÒòΪ‘ÐÂÎÅ’ÊÇ×î´ó·ÖÀ࣬ÉÏÃæûÓи¸ÀàÁË£¬ËùÒÔÎÒ°ÑËüµÄf_idÉèÖÃΪ0¡£
¡¡¡¡INSERT INTO `class` (`id`, `f_id`, `name`) VALUES(1, 0, 'ÐÂÎÅ'); //idÕâ¸ö×Ö¶ÎÊÇ×Ô¶¯Ôö³¤µÄ£¬¿ÉÒÔ²»Ð´Öµ¡£
¡¡¡¡//È»ºóÎÒÃÇÔÙÍùÊý¾Ý¿âÀï²åÈë‘PHPÐÂÎÅ’Õâ¸ö·ÖÀ࣬ËüµÄ¸¸Àà‘ÐÂÎÅ’µÄidÊÇ1£¬ËùÒÔËüµÄf_idÉèÖÃΪ1¡£
¡¡¡¡INSERT INTO `class` (`id`, `f_id`, `name`) VALUES(2, 1, 'PHPÐÂÎÅ');
¡¡¡¡//È»ºóÎÒÃÇÔÙÍùÊý¾Ý¿âÀï²åÈë‘PHP6.0³öÀ´ÁË’Õâ¸ö·ÖÀ࣬ËüµÄ¸¸Àà‘PHPÐÂÎÅ’µÄidÊÇ2£¬ËùÒÔËüµÄf_idÉèÖÃΪ2¡£
¡¡¡¡INSERT INTO `class` (`id`, `f_id`, `name`) VALUES(3, 2, 'PHP6.0³öÀ´ÁË');
¡¡¡¡//ͬÀí£¬ÎÒÃÇ¿ÉÒÔÕâÑùÒ»Ö±ÍùϲåÈë·ÖÀ࣬Ҳ¾Í´ïµ½ÁËPHPÎÞÏÞ·ÖÀà¡£
¡¡¡¡//ÎÒÃÇ¿ÉÒÔ·¢ÏÖ²åÈëÒ»¸ö·ÖÀàµÄÔ­Ôò¹Ø¼üÊÇÕÒµ½Õâ¸ö·ÖÀàµÄ¸¸ÀàµÄid£¬È»ºó×÷ΪÕâ¸ö·ÖÀàµÄf_id×ֶεÄÖµ¡£
¡¡¡¡//¼ÙÉèÒª²åÈë¸ú‘ÐÂÎŒͬһ¸ö¼¶±ðµÄ·ÖÀà‘¼¼Êõ’£¬Ò²¾ÍÊÇ˵ËüÒ²ÊÇ×î´ó·ÖÀ࣬ÉÏÃæûÓи¸ÀàÁË£¬ÄÇôËüµÄf_idÒ²ÉèÖÃΪ0;


Ïà¹ØÎĵµ£º

PHP×Ö·û´®ÖеĴóÀ¨ºÅ

<?php
class Model_Data_FocusData{
....
public function getData(){...}
}
class Model_Data_IndexData{
....
public function getData(){...}
}
?> 
 ÓÐÕâô¼¸¸öÀ࣬ϣÍûÄܹ»×Ô¶¯µÄ¸ù¾Ý²ÎÊýÀ´µ÷Óò»Í¬µÄÀà´¦ÀíÊý¾Ý¡£
¿´µ÷ÓÃÄ£¿é£º
<?php

function getData($act){
$class = "Mode ......

Month of PHP Security Summary

it is 21th of May. The Month of PHP Security
(http://www.php-security.org) is still running and we have reached a
vulnerability count of 40 vulnerabilities, which is nearly as much as we
disclosed during the whole Month of PHP Bugs in 2007. However there are
11 more days until the end of May and ......

PHP »ñȡʱ¼ä²»×¼È· ²î8Сʱ µÄ ½â¾ö·½·¨

ÓÃPHP±à³Ì£¬Ê¹Óûñȡʱ¼äµÄ´úÂ룬µ«ÊÇ»ñÈ¡µ½µÄʱ¼ä×ÜÊDZȵ±Ç°Ê±¼äÔç8¸öСʱ£¬°Ù˼²»µÃÆä½â£¬ÔÚÍøÉÏËÑË÷ÁËÏ£¬ÖÕÓÚÕÒµ½Á˽â¾ö°ì·¨£¬Ô­À´ÊÇʱÇøÉèÖÃÎÊÌâ¡£ ½â¾ö°ì·¨Ò»£º ÔÚphp.iniÀïÉèÖà date.timezone = ʱÇø ½â¾ö°ì·¨¶þ£º ²»ÓÃÐÞ¸Äphp.inÎļþ£¬Ö±½ÓÔÚ»ñȡʱ¼äµÄ´úÂëÇ°Ãæ¼ÓÉÏ£º date_default_timezone_set('ʱÇø'); ±ÈÈ ......

PHPͨ¹ýsession id ʵÏÖsession¹²ÏíºÍµÇ¼ÑéÖ¤[ת]

http://edu.codepub.com/2010/0131/20248.php
ÆäʵÕâ¸öÓ¦¸Ã²»ËãÊÇÒÉÄÑÎÊÌ⣬¾ÍÊÇphpÖÐÓàsessionidµÃµ½sessionµÄÖµ£¬ÒòΪµÄÈ·ºÜ¼òµ¥£¬Ö»ÊÇ¿ÉÄÜ´ó¼ÒƽʱÓò»µ½ËùÒÔûÓÐ×¢Òâµ½°ÕÁË¡£
 
ÏÈ˵˵£¬Õâ¸ö»úÖƵÄÓÃ;°É£¬µ½ÏÖÔÚΪֹսµØÖªµÀÕâ¸ö»úÖÆÓÐÁ½¸ö·½ÃæµÄÓÃ;£º
ÆäʵÕâ¸öÓ¦¸Ã²»ËãÊÇÒÉÄÑÎÊÌ⣬¾ÍÊÇphpÖÐÓà sessi ......

PHPѧϰ±Ê¼Ç

    ½ñÌ쿪ʼѧϰPHP£¬¸Ð¾õ¿´¹ý¾ÍÍüÁË£¬É¶¶¼Áô²»Ï±ȽÏÒź¶£¬¾Í±ß¿´±ß×ܽáÁË£¬·½±ã×Ô¼ºÒÔºó¿´£¬Ò²·½±ã±ðÈË¿ìËÙÈëÃÅ£¬»òÕß¿ìËÙ¸´Ï°°É(awen)¡£
 
µÚÒ»²¿·Ö ´î½¨Æ½Ì¨
1.    ¿ÉÒÔÏÂÔØÒ»¸öphp for windows iis °æ±¾ ×îÊ¡¾¢£¬Ö±½Ó°²×°ºó×Ô¶¯Éý¼¶iisʹÆäÖ§³Öphp¹¦ÄÜ¡£
2.    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ