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

PHPÑéÖ¤ÍøÒ³ÊÇ·ñ¿ÉÓõÄһЩ·½·¨

×î½ü¹«Ë¾ÓиöÍøÕ¾ÒªÏÈÅжϷþÎñÆ÷ÉϵÄÍøÒ³ÊÇ·ñ¿ÉÓã¬È»ºóÔÚ°ÑÖµÌá½»µ½Õâ¸öÍøÒ³ÉÏ¡£Ê¹ÓÃphpÀ´¼ì²âÍøÒ³ÊÇ·ñ¿ÉÓã¬Ã»Ôõô½Ó´¥¹ýphp£¬¸ãÁËÁ½Ì죬»ù±¾ÉÏÊÇ¿ÉÒÔ¼ì²âÁË¡£ÏÖ°Ñ´úÂëÌùÉÏ£º
 <?php 
  //
  $url = "http://blog.csdn.net/xuezhongsong/archive/2009/09/17/4561488.aspx";  
  $ctx = stream_context_create(array('http' => array('timeout' => 10)));  
  //»ñÈ¡ÍøÒ³ÄÚÈÝ
  $result = @file_get_contents($url, 0, $ctx);  
  if($result){  
  echo "<Script language='JavaScript'> alert('³É¹¦£¡');</Script>";
   
  }else{  
  echo "<script>alert('·þÎñÆ÷·±Ã¦£¬ÇëÉÔºóÔÙÊÔ!'); </script>";
  }  
  //ÒÔÏÂÊÇÁíÒ»ÖÖ·½·¨ÅжϷþÎñÆ÷ÍøÒ³ÊÇ·ñÏìÓ¦£¬µ«Êǵ±±¾Ò³´¦Àíʱ¼ä³¬Ê±»áÓеãÎÊÌâ¡£
  /*$fp = fsockopen("localhost", 80, &$errno, &$errstr, 10);
  socket_set_timeout($fp, 0, 10);
  if(!$fp && socket_set_timeout($fp, 0, 10))
  {
  echo "<script>alert('·þÎñÆ÷·±Ã¦£¬ÇëÉÔºóÔÙÊÔ!'); </script>";
  }else{
  $stream="";
  fputs($fp,"GET /edulifebg.cn/SynEnrollData.asp HTTP/1.0\nHost: localhost\n\n Connection: close\r\n\r\n");
  $i=0;
  $inheader=1;
  error_reporting(0); 
  while(!feof($fp) && $inheader){
  $line = fgets($fp,1024); 
  //httpÇëÇóµÄ»ñÈ¡Í·²¿
  if ($inheader && ($line == "\n" || $line == "\r\n")) {
  $inheader = 0;
  }
  if ($inheader != 0) {
  $stream.= $line;
  } 
  }
  echo $stream;
  $mark=trimHeader($stream);
  if($mark==200){
  echo "<Script language='JavaScript'> alert('³É¹¦£¡');</Script>";
  }else{
  echo "<Script language='JavaScript'> alert('·þÎñÆ÷·±Ã¦£¬ÇëÉÔºóÔÙÊÔ...£¡".$


Ïà¹ØÎĵµ£º

PHPº¯Êý°´ÒýÓô«µÝµÄÀý×Ó


PHPº¯Êý°´ÒýÓô«µÝµÄÀý×Ó
Ê×ÏÈÈÃÎÒÃÇÀ´¿´Ò»¶Î´úÂëÈçÏ£º
<?php
 $cost=20.99;
 $tax=0.75;
 function calculateCost(&$cost,$tax){
  $cost=$cost+($cost*$tax);
  $tax+=4;
 }
 calculateCost($cost,$tax);
 printf("Tax is:%1.2f<br />",$tax);
  ......

»ùÓÚwordpressµÄPHP½Ì³Ì


Ç°ÑÔ
ÕýÈç´ó¼ÒÒ»Ñù£¬µ±ÎÒ¾õµÃҪѧϰһÖÖеĶ«Î÷µÄʱºò£¬×ÜÊÇÓÐÒ»ÖÖ¾Þ´óµÄѹÁ¦£®Ê×ÏÈÒ»¸öÎÊÌâÊÇ£ºÊÇ·ñ¿ÉÒÔѧ»á£®ÁíÒ»¸öÎÊÌâÔòÊÇ£ºÕâ¸öеÄ֪ʶÊÇ·ñÄܹ»ÕÒµ½Ò»·Ý¹¤×÷£®Èç¹ûÄ㻹ÊÇÒ»ÃûѧÉú£¬ÄÇôÄãÓ¦¸Ã¸Ðµ½¸ßÐË£¬ÒòΪѧУÀïµÄÉú»î²»ÊÇÓÉÄã×Ô¼ºÌṩ±£Õϵģ¬ËùÒÔ²»Òª¿¼ÂÇα£ÎÊÌ⣻µ«ÊÇ×Ô´ÓѧУ³öÀ´ºó£¬²ÅÖªµÀÉú»îÊÇʲô×Ìζ ......

PHPÖеÄÃüÃû¹æÔò

ÀàµÄÃüÃû
¡¡¡¡ ÔÚΪÀࣨclass £©ÃüÃûÇ°Ê×ÏÈÒªÖªµÀËüÊÇʲô¡£Èç¹ûͨ¹ýÀàÃûµÄÌṩµÄÏßË÷£¬»¹ÊÇÏë²»ÆðÕâ¸öÀàÊÇʲôµÄ»°£¬ÄÇô¾Í˵Ã÷Éè¼Æ´æÔÚÎÊÌâ¡£
¡¡¡¡³¬¹ýÈý¸ö´Ê×é³ÉµÄ»ìºÏÃûÊÇÈÝÒ×Ôì³Éϵͳ¸÷¸öʵÌå¼äµÄ»ìÏý£¬³¢ÊÔʹÓã¨CRC Se- ssion card)¿´¿´¸ÃÃüÃûËù¶ÔÓ¦µÄʵÌåÊÇ·ñÓÐ×ÅÄÇô¶àµÄ¹¦Óá£
¡¡¡¡¶ÔÓÚÅÉÉúÀàµÄÃüÃûÓ¦¸Ã±ÜÃâ´ ......

(תÔØ)ÓÅ»¯PHP´úÂëµÄ40Ìõ½¨Òé

Ô­ÎÄÁ´½Ó£ºhttp://webdev.csdn.net/page/58438f5e-704e-4e80-bdbd-7d06e8ecceb9#
40 Tips for optimizing your php Code
Ô­ÎĵØÖ·£ºhttp://reinholdweber.com/?p=3
Ó¢ÎÄ°æȨ¹éReinhold WeberËùÓУ¬ÖÐÒëÎÄ×÷Õßyangyang£¨aka davidkoree£©¡£Ë«Óï°æ¿ÉÓÃÓÚ·ÇÉÌÒµ´«²¥£¬µ«Ðë×¢Ã÷Ó¢ÎÄ°æ×÷Õß¡¢°æȨÐÅÏ¢£¬ÒÔ¼°ÖÐÒëÎÄ×÷Õß¡£·­ÒëË® ......

jsp,ASP,PHPµÄ±È½Ï

      ºÜ¶àSOHOER¶¼Ï£ÍûÓиö×Ô¼ºµÄÍøÕ¾,¶ø¶ÔÍøÕ¾½¨ÉèÒ»ÎÞËùÖª,»òÕßÒ»Öª°ë½â.½ñÌìÎÒÏȽ²³ÌÐò·½ÃæµÄÇø±ð,ÏàÐźܶàÈËÅöµ½ÁËÓÐЩ¹«Ë¾Ëµphp±ÈAsp,Asp.Net¶¼ÒªºÃ,»òÕßAsp±ÈÆäËûÓïÑÔ¶¼ÒªºÃ¡£Æäʵ,³ÌÐòµÄÓÅÂÔÓëÍøÕ¾¿ª·¢ÈËÔ±µÄ¾­Ñé\¼¼ÊõˮƽÏà¹Ø£¬¶øÓïÑÔ±¾Éí²¢Ã»ÓÐʲôÓÅÂÔÖ®·Ö.¾­Ñé¶àµÄ³ÌÐòÔ±,²»¹ÜʹÓõÄÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ