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

PHPÖÐforeach±éÀúÊý×é(2)

<?php
  //ÉùÃ÷Êý×é±äÁ¿
  $arr = array('ÕÅÈý','ÀîËÄ','ÍõÎå','ÀîÃ÷');
 
  //foreachÑ­»·±éÀúÊý×é
  foreach($arr as $value){
   //×¢Òâ“$value”ºó±ØÐëÒªÒ»¸ö¿Õ¸ñ£¬·ñÔòÊä³öµÄ½á¹û²»ÕýÈ·
   echo "$value<br/>";
  }
?>


Ïà¹ØÎĵµ£º

VisualSVNÔö¼ÓÃÜÂëphpÐÞ¸ÄÒ³Ãæ

VisualSVNÔö¼ÓÃÜÂëphpÐÞ¸ÄÒ³Ãæ
1.¼ÙÉèVisualSVN°²×°ÔÚ C:\Program Files\VisualSVN Server
2.ÏÂÔز¢°²×°php windows°æ±¾£¬¼ÙÉè°²×°ÔÚc:\php
  ¿ÉÒÔµ½php¹Ù·½ÍøÕ¾ÏÂÔØ www.php.net
  ¸½¼þÖдøµÄÊÇ php-5.3.2-Win32-VC6-x86.zip
3.VisualSVNÔö¼ÓphpÖ§³Ö
×¢ÒâÐÞ¸Ä "c:/php/php5apache2_2.dll" ΪÕýȷ·¾¶
C:\ ......

PHPÓëACCESSÁ´½ÓµÄÀà

[php]
<?php
--------------------------------------------------------------------
//FileName:class.php
//Summary: AccessÊý¾Ý¿â²Ù×÷Àà
//Author:  forest
//CreateTime: 2006-8-10    
//LastModifed:
//copyright (c)2006
//http://freeweb.nyist.net/~chairy 
//cha ......

php ÉÏ´«Îļþ

//×îºÃÏȽ¨Á¢Ò»¸ö upload/publicÕâ¸öÎļþ¼Ð£¬ÒÔÏÂÊÇupload.php
<?php
/**
*********************************************
²ÎÊýÉ趨
*********************************************
**/
//×î´óÉÏ´«Îļþ´óС
$MAX_SIZE = 20000000;
//ÉèÖÃMineÀàÐÍ
$FILE_MIMES = array
('image/jpeg','image/jpg','image/gif ......

php»ù´¡Ó¦ÓãºphpÅúÁ¿×ª»»Îļþ±àÂë

±éÀúĿ¼Îļþ£¬Ìæ»»±àÂ벿·Ö£¬É¾³ýÔ­Îļþ£¬ÔÙÖØÐÂתÂëÔ­ÎļþÄÚÈÝ£¬ÖØÐÂÉú³ÉÐÂÎļþ¡£
function explorerdir($sDir){

static $aTempArr=array();
$dp=opendir($sDir);
while ($sFileName = readdir($dp)){

if ($sFileName !='.' && $sFileName !='..'){

......

PhpÅжÏÓû§Í¨¹ýÊÖ»ú·ÃÎÊwap»¹ÊǵçÄÔÖ±½Ó·ÃÎÊ

Ê×ÏÈ˵×î¸ù±¾µÄ½â¾ö·½·¨£º
ÊÖ »ú·ÃÎÊʱ£¬»á¸½´ø·¢ËÍuser-agentÐÅÏ¢£¬Õâ¸öÐÅÏ¢ÀïÃæ»áÓÐÊÖ»úºÅÂëÐÅÏ¢£¬ÄÇôÈç¹ûÄÜÈ¡µÃÊÖ»úºÅÂ룬Ôò¿ÉÒԿ϶¨ÊÇͨ¹ýÊÖ»úwap·ÃÎʵġ£µ«ÊÇÄ¿Ç°ÖÐ ¹úÒƶ¯ÒѾ­ÆÁ±ÎÁËuser-agentÐÅÏ¢£¬ËùÒÔ»ñÈ¡²»µ½ÊÖ»úºÅÂë¡£ÓйØϵµÄÅóÓÑ¿ÉÒÔÁªÏµÒƶ¯¹«Ë¾£¬°ÑwapÍøÕ¾·þÎñÆ÷µÄipÌá½»¸øÖйúÒƶ¯£¬¼ÓÈë°×Ãûµ¥ ºó¼´¿ÉÈ¡µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ