phpµ¥Àýģʽ
<?php
//µ¥ÀýģʽµÄÀàLock
class
Lock
{
//¾²Ì¬ÊôÐÔ$instance
static
private
$instance
= NULL;
//Ò»¸öÆÕͨµÄ³ÉÔ±ÊôÐÔ
private
$switch
= 0;
//getInstance¾²Ì¬³ÉÔ±·½·¨
static
function
getInstance()
{
//Èç¹û¶ÔÏóʵÀý»¹Ã»Óб»´´½¨£¬Ôò´´½¨Ò»¸öеÄʵÀý
if
(self::
$instance
== NULL)
{
self::$instance
=
new
Lock();
}
//·µ»Ø¶ÔÏóʵÀý
return
self::
$instance
;
}
//¿Õ¹¹Ô캯Êý
private
function
Lock()
{
&
Ïà¹ØÎĵµ£º
¹ØÓÚPHPµÄǰ;£¨¶þ£© £¨À´×Ô±¾Õ¾µÄÏûÏ¢£©
3.2ÔÚWindows 95/98/NT/2000ÉÏ¿ìËÙ°²×°Apache Web·þÎñÆ÷£¨10ÃëÖÓ£©
ÔÚWindowsÉÏÔËÐÐPHP£¬ÄãÐèÒªÒ»¸öWeb·þÎñÆ÷£¬Äã¿ÉÒÔʹÓÃ΢ÈíµÄIIS£¬Ò²¿ÉÒÔʹÓÃÃâ·ÑµÄApache ¡£ÒòΪ¿ÉÒÔͨ¹ýApacheµÄ°²×°Îļþsetup.exe½øÐа²×°£¬¿ÉÒÔΪÄã½ÚÊ¡Ðí¶àʱ¼ä¡£
PHPTtriadÊÇÒ»¸ö°üÀ¨Apache¡¢PHP¡¢MySQ ......
¹ØÓÚPHPµÄǰ;£¨Èý£© £¨À´×Ô±¾Õ¾µÄÏûÏ¢£©
6.PHPµÄ¼òÒªÀúÊ·
PHP×î³õ×÷ΪһÖÖÓÃPerlд³ÉµÄ¼òµ¥Ð¡ÇɵÄCGI¹¤¾ß£¬±»³ÆÎª“¸öÈËÖ÷Ò³¹¤¾ß£¨Personal Home Page Tools£©”£¬ºóÀ´¸Ä³ÆÎª“¸öÈËÖ÷Ò³¹¹½¨¹¤¾ßÏ䣨Personal Home Page Construction Kit£©”¡£
Ò²Ôø½Ð×ö“רҵÖ÷Ò³¹¤¾ß£¨Professional Home P ......
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 ......
<?
//²åÈëÅÅÐò£¨Ò»Î¬Êý×飩
function insert_sort($arr){
¡¡$count = count($arr);
¡¡for($i=1; $i<$count; $i++){
¡¡¡¡$tmp = $arr[$i];
¡¡¡¡$j = $i - 1;
¡¡¡¡while($arr[$j] > $tmp){
¡¡¡¡¡¡$arr[$j+1] = $arr[$j];
¡¡¡¡¡¡$arr[$j] = $tmp;
¡¡¡¡¡¡$j--;
¡¡¡¡}
¡¡}
¡¡return $arr;
}
¡¡¡¡
//Ñ¡Ô ......
½ñÌ쿪ʼѧϰPHP£¬¸Ð¾õ¿´¹ý¾ÍÍüÁË£¬É¶¶¼Áô²»Ï±ȽÏÒź¶£¬¾Í±ß¿´±ß×ܽáÁË£¬·½±ã×Ô¼ºÒÔºó¿´£¬Ò²·½±ã±ðÈË¿ìËÙÈëÃÅ£¬»òÕß¿ìËÙ¸´Ï°°É(awen)¡£
µÚÒ»²¿·Ö ´î½¨Æ½Ì¨
1. ¿ÉÒÔÏÂÔØÒ»¸öphp for windows iis °æ±¾ ×îÊ¡¾¢£¬Ö±½Ó°²×°ºó×Ô¶¯Éý¼¶iisʹÆäÖ§³Öphp¹¦ÄÜ¡£
2.   ......