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

FTP µÃµ½ÎļþÊ÷[php]

<?php
 $host="192.168.1.214";
 $post=21;
 $username="zwc3g";
 $password="zwc3ggg";
 
 $ftp=ftp_connect($host,$post);
 ftp_login($ftp,$username,$password);
 displayTheFolder($ftp,"/zhulu2");
 
 //´òÓ¡FTPÉϵĸÃĿ¼ÏµÄËùÓÐÎļþ¡£
 function displayTheFolder($ftp,$fileOrFolderURL)
 {
  $fileOrFolderArray=ftp_nlist($ftp,$fileOrFolderURL);
  if(count($fileOrFolderArray)==1)
  {
   return "";
  }
  foreach ($fileOrFolderArray as $key =>$value)
  {
   echo "+".$value."<br>";
   displayTheFolder($ftp,$value);
  }
  ftp_cdup($ftp);
 }
?>
<pre>
--------------------------------------------------------------------------------
 FTP Îļþ´«Ê亯Êý¿â
--------------------------------------------------------------------------------
 
±¾º¯Êý¿â¹²ÓÐ 20 ¸öº¯Êý
FTP µÄȫΪ File Transfer Protocol£¬Ò²¾ÍÊÇÎļþ´«ÊäЭÒé¡£ÀûÓñ¾º¯Êý¿â¿ÉÒÔÈà PHP Ò²ÄÜ´¦Àí FTP µÄÏà¹Ø¹¦ÄÜ¡£±¾º¯Êý¿âÐèÒª PHP 3.0.13 °æÖ®ºó²ÅÖ§³Ö¡£ 
ftp_connect: ´ò¿ª FTP Á´½Ó¡£
ftp_login: µÇÈë FTP ·þÎñÆ÷¡£
ftp_pwd: È¡µÃÄ¿Ç°ËùÔÚ·¾¶¡£
ftp_cdup: »ØÉϲãĿ¼¡£
ftp_chdir: ¸Ä±ä·¾¶¡£
ftp_mkdir: ½¨ÐÂĿ¼¡£
ftp_rmdir: ɾ³ýĿ¼¡£
ftp_nlist: ÁгöÖ¸¶¨Ä¿Â¼ÖÐËùÓÐÎļþ¡£
ftp_rawlist: ÏêϸÁгöÖ¸¶¨Ä¿Â¼ÖÐËùÓÐÎļþ¡£
ftp_systype: ÏÔʾ·þÎñÆ÷ϵͳ¡£
ftp_pasv: Çл»Ö÷±»¶¯´«Êäģʽ¡£
ftp_get: ÏÂÔØÎļþ¡£
ftp_fget: ÏÂÔØÎļþ£¬²¢´æÔÚÒÑ¿ªµÄµµÖС£
ftp_put: ÉÏ´«Îļþ¡£
ftp_fput: ÉÏ´«ÒÑ´ò¿ªÎļþ¡£
ftp_size: »ñµÃÖ¸¶¨ÎļþµÄ´óС¡£
ftp_mdtm: »ñµÃÖ¸¶¨ÎļþµÄ×îºóÐÞ¸Äʱ¼ä¡£
ftp_rename: ½«Îļþ¸ÄÃû¡£
ftp_delete: ½«Îļþɾ³ý¡£
ftp_quit: ¹Ø±Õ FTP Á¬½Ó¡£
</pre>


Ïà¹ØÎĵµ£º

ÓÃPHPʵÏÖPOP3ÓʼþµÄ½âÂë

Ô­ÎÄÄÚÈÝûÓб仯£¬ÔÚ¹«Ë¾¿ìÏû»¯ÁËÁ½¸öϵͳÁË£¬ËùÒÔ´òËã×Ô¼ºÐ´Ò»¸ö¹¦ÄÜ»¹¿ÉÒԵĸöÈËϵͳ£¬ÎÒÖªµÀÍøÉϺܶ࣬ÎÒÒ²ÊÕ¼¯Á˺ü¸¸ö£¬µ«ÊÇÏë¿´¿´×Ô¼ºÄܲ»ÄÜ×ö³öÀ´£¬ºÃºÃ¼ÓÓÍ°É£¬ÔڳﱸµÄ¹ý³ÌÖÐÓöµ½ÁËÓʼþÕâÑùµÄÎÊÌ⣬ËùÒÔ»¨Á˵ãʱ¼äÑо¿ÁËÒ»·¬£¬ÍøÉÏÕÒµ½µÄºÃÄÚÈÝ£¬ÄóöÀ´·ÖÏíÒ»ÏÂ
ÒýÓÃÍøÖ·£ºhttp://www.china-askpro.com/msg36/qa ......

phpÒ³Ãæ¼ä´«Öµ

ÀýÈ磺
A.php
<?php
$usernane
?>
Òª½«A.phpÖصÄ$usernaneÖµ´«¸øÁíÍâÒ»¸öÒ³Ã棨B.php£©ÖеÄʵÏÖ·½·¨£º
<meta   http-equiv='refresh'   content='0;url='B.php£¿user=$username'>   
  ½ÓÊÕ   
  echo   $_GET['user'];
ÕâÑù£¬¾Í¿ÉÒÔÔÚB.phpÖзÃÎÊ$use ......

Nginx + PHP£¨FastCGI£©¡±Web·þÎñÆ÷

   ÏÂÃæÊÇÓÃ100¸ö²¢·¢Á¬½Ó·Ö±ðȥѹÉú²ú»·¾³ÖÐͬһ¸ºÔؾùºâÆ÷VIPÏ¡¢ÌṩÏàͬ·þÎñµÄÁ½Ì¨·þÎñÆ÷£¬Ò»Ì¨ÎªNginx£¬Áíһ̨ΪApache£¬NginxÿÃë´¦ÀíµÄÇëÇóÊýÊÇApacheµÄÁ½±¶¶à£¬Nginx·þÎñÆ÷µÄϵͳ¸ºÔØ¡¢CPUʹÓÃÂÊÔ¶µÍÓÚApache£º
¡¡¡¡Äã¿ÉÒÔ½«Á¬½ÓÊý¿ªµ½10000¡«30000£¬È¥Ñ¹NginxºÍApacheÉϵÄphpinfo.php£¬ÕâÊÇÓÃä¯ÀÀÆ÷·ÃÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ