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

PHPÉÏ´«¸½¼þ ·ÀÖ¹ÖØ¸´ÉÏ´« - PHP / »ù´¡±à³Ì

´ó¼Ò¿´¿´ÎÊÌâ³öÔÚÄĶù£¬²»ÄÜʵÏÖ·ÀÖ¹ÖØ¸´ÉÏ´«
$overwrite = 0;//ÊÇ·ñÔÊÐí¸²¸ÇÏàͬÎļþ,1:ÔÊÐí,0:²»ÔÊÐí 
$f_input="Files";//ÉèÖÃÉÏ´«ÓòÃû³Æ
  foreach($_FILES[$f_input]["error"] as $key => $error){ 
  $up_error="no"; 
  if ($error == UPLOAD_ERR_OK){ 
  $f_name=$_FILES[$f_input]['name'][$key];//»ñÈ¡ÉÏ´«Ô´ÎļþÃû 

  $uploadfile=$uploaddir.strtolower(basename($f_name)); 
   
  $tmp_type=substr(strrchr($f_name,"."),1);//»ñÈ¡ÎļþÀ©Õ¹Ãû
$tmp_type=strtolower($tmp_type); 

  if (file_exists($uploadfile)&& !$overwrite){ 
  echo "<script>alert('¶Ô²»Æð,Îļþ ".$f_name." ÒѾ­´æÔÚ,ÉÏ´«Ê§°Ü!')</script>"; 
  $up_error="yes"; 
  } 
  $string = 'abcdefghijklmnopgrstuvwxyz0123456789';
Â¥Ö÷½ñÌìÔÚô£¿

ÓÃÎļþÃûÅжÏÊÇ·ñÖØ¸´µÄÎļþÓÐʲôÓÃ,¼ÆËã³öÎļþµÄmd5Öµ´æÈëÊý¾Ý¿â¡£

Â¥Ö÷È¥ITÈ˼ÊÍøÉÏÕÒPHPµÄÀÏʦÎÊÎʰɣ¬Ï£ÍûÄܰïÉÏÄã¸ü¶à£¬ÒÔºóÓÐÎÊÌâ¿ÉÒÔÖ±½ÓÔÚÕ¾ÄÚÎÊËûµÄ

/// <summary>
  /// ¸½¼þ±£´æ·½·¨
  /// </summary>
  /// <param name="UpFile">ÉÏ´«ÎļþµÄ¿Ø¼þ</param>
  ///


Ïà¹ØÎÊ´ð£º

ÈçºÎÔÚphpÍøÕ¾ÖÐÌí¼Ó±³¾°ÒôÀÖ - PHP / »ù´¡±à³Ì

ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......

phpÁª½Ó¶à¸öÊý¾Ý¿âµÄÎÊÌâ

mssql_select_db("f1",mssql_connect("localhost","sa","sa"));
mssql_select_db("f2",mssql_connect("192.168.0.1","sa","sa") ......

PHP+MYSQLÊý¾Ý¼¯´¦Àí - PHP / »ù´¡±à³Ì

1¡¢ÊDz»ÊÇPHPÖÐÖ»ÄÜʹÓÃmysql_query("update user_aa set money=money2-".$bpanmm." where uid=".$userppp);¸üÐÂÊý¾Ý£¿£¿£¿
2¡¢PHP¸üÐÂmysql_fetch_row($res)Óëmysql_fetch_array($res)ÖеÄÊý¾ ......

PHPÈçºÎʵÏÖÓòÃûµÄ×Ô¶¯Ìø×ª... - PHP / »ù´¡±à³Ì

ÏÖÓÐÒ»PHP¿Õ¼ä£¬Ö§³ÖMYSQLÊý¾Ý¿â
Ϊ½ÚÊ¡·ÑÓã¬ÏÖÏëͨ¹ýÓòÃûתÏòĿ¼ÐÎʽ½øÐйÜÀí£¨¼´½«ÓòÃûA¼Ç¼£Û°üÀ¨¶¥¼¶ÓòÃû¼°¶þ¼¶ÓòÃû£Ý¶¼Ö¸Ïòͬһ¿Õ¼ä£©
È磺·ÃÎÊÓòÃû abcd.cn Ö±½Ó·ÃÎÊÍøÕ¾¸ùĿ¼
·ÃÎʶþ¼¶ÓòÃû ef.abcd.cn ......

PHPÓëASP - PHP / »ù´¡±à³Ì

ÔÚPHPÖÐÓÐûÓÐÏñASPÖеļǼ¼¯(ADODB.Recordset )ÕâÖÖÀàÐ͵ĶÔÏó?¿É²»¿ÉÒÔÏñÔÚASPÖÐÒ»Ñùͨ¹ý¼Ç¼¼¯À´¸üÐÂÊý¾Ý¿â.ÈçÏÂÃæÕâÑù.
VBScript code:

set rs=server.createobject("adodb.recordset")
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ