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
class Model_Data_FocusData{
....
public function getData(){...}
}
class Model_Data_IndexData{
....
public function getData(){...}
}
?>
ÓÐÕâô¼¸¸öÀ࣬ϣÍûÄܹ»×Ô¶¯µÄ¸ù¾Ý²ÎÊýÀ´µ÷Óò»Í¬µÄÀà´¦ÀíÊý¾Ý¡£
¿´µ÷ÓÃÄ£¿é£º
<?php
function getData($act){
$class = "Mode ......
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±à³Ì£¬Ê¹Óûñȡʱ¼äµÄ´úÂ룬µ«ÊÇ»ñÈ¡µ½µÄʱ¼ä×ÜÊDZȵ±Ç°Ê±¼äÔç8¸öСʱ£¬°Ù˼²»µÃÆä½â£¬ÔÚÍøÉÏËÑË÷ÁËÏ£¬ÖÕÓÚÕÒµ½Á˽â¾ö°ì·¨£¬ÔÀ´ÊÇʱÇøÉèÖÃÎÊÌâ¡£ ½â¾ö°ì·¨Ò»£º ÔÚphp.iniÀïÉèÖà date.timezone = ʱÇø ½â¾ö°ì·¨¶þ£º ²»ÓÃÐÞ¸Äphp.inÎļþ£¬Ö±½ÓÔÚ»ñȡʱ¼äµÄ´úÂëÇ°Ãæ¼ÓÉÏ£º date_default_timezone_set('ʱÇø'); ±ÈÈ ......
http://edu.codepub.com/2010/0131/20248.php
ÆäʵÕâ¸öÓ¦¸Ã²»ËãÊÇÒÉÄÑÎÊÌ⣬¾ÍÊÇphpÖÐÓà sessionidµÃµ½sessionµÄÖµ£¬ÒòΪµÄÈ·ºÜ¼òµ¥£¬Ö»ÊÇ¿ÉÄÜ´ó¼ÒƽʱÓò»µ½ËùÒÔûÓÐ×¢Òâµ½°ÕÁË¡£
ÏÈ˵˵£¬Õâ¸ö»úÖƵÄÓÃ;°É£¬µ½ÏÖÔÚΪֹսµØÖªµÀÕâ¸ö»úÖÆÓÐÁ½¸ö·½ÃæµÄÓÃ;£º
ÆäʵÕâ¸öÓ¦¸Ã²»ËãÊÇÒÉÄÑÎÊÌ⣬¾ÍÊÇphpÖÐÓà sessi ......
½ñÌ쿪ʼѧϰPHP£¬¸Ð¾õ¿´¹ý¾ÍÍüÁË£¬É¶¶¼Áô²»Ï±ȽÏÒź¶£¬¾Í±ß¿´±ß×ܽáÁË£¬·½±ã×Ô¼ºÒÔºó¿´£¬Ò²·½±ã±ðÈË¿ìËÙÈëÃÅ£¬»òÕß¿ìËÙ¸´Ï°°É(awen)¡£
µÚÒ»²¿·Ö ´î½¨Æ½Ì¨
1. ¿ÉÒÔÏÂÔØÒ»¸öphp for windows iis °æ±¾ ×îÊ¡¾¢£¬Ö±½Ó°²×°ºó×Ô¶¯Éý¼¶iisʹÆäÖ§³Öphp¹¦ÄÜ¡£
2.   ......