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

php³£Óü¼ÇÉ

ÈçºÎÅжÏipµØÖ·ºÏ·¨ÐÔ
if(!strcmp(long2ip(sprintf("%u",ip2long($ip))),$ip)) echo "is ipn";
 emailµÄÕýÔòÅжÏ
eregi("^[_.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z_-]+.)+[a-zA-Z]$", $email);
¼ì²âipµØÖ·ºÍmaskÊÇ·ñºÏ·¨µÄÀý×Ó
$ip = '192.168.0.84';
$mask = '255.255.255.0';
$network = '192.168.0';
$ip = ip2long($ip);
$mask = ip2long($mask);
$network = ip2long($network);
if( ($ip & $mask) == $network) echo "valid ip and maskn";
?>
ÎļþÏÂÔØÍ·²¿Êä³öÈçºÎÉ趨
header("Content-type: application/x-download");
header("Content-Disposition: attachment; filename=$file_download_name;");
header("Accept-Ranges: bytes");
header("Content-Length: $download_size");
echo 'xxx'
ÓÃheaderÊä³öftpÏÂÔØ·½Ê½,²¢ÇÒÖ§³Ö¶ÏµãÐø´«
Ò»¸öÀý×Ó:
header('Pragma: public');
header('Cache-Control: private');
header('Cache-Control: no-cache, must-revalidate');
header('Accept-Ranges: bytes');
header('Connection: close');
header("Content-Type: audio/mpeg");
header("Location:ftp://download:1bk3l4s3k9s2@232.2.22.22/2222/web¼¼Êõ¿ª·¢ÖªÊ¶¿â/cn_web.rmvb");
ÕýÔòÆ¥ÅäÖÐÎÄ
ereg("^[".chr(0xa1)."-".chr(0xff)."]+$", $str);
ÅúÁ¿Ìæ»»Îı¾ÀïÃæµÄ³¬¼¶Á´½Ó
<?php
function urlParse($str = ''){
    if ('' == $str) return $str;
$types = array("http", "ftp", "https");
$replace = <<<EOPHP
  '<a href="'.htmlentities('\1').htmlentities('\2').'">'.htmlentities('\1').htmlentities('\2').'</a>'
EOPHP;
$ret = $str;
while(list(,$type) = each($types)){
  $ret = preg_replace("|($type://)([^\s]*)|ie ", $replace, $ret);
}
return $ret;
}
?>


Ïà¹ØÎĵµ£º

PHPʵÏÖÎļþµÄ¶ÁºÍд¹¦ÄÜ

½øÐÐÎļþµÄ¶ÁºÍд£¬ÏÈ´ò¿ªÒ»¸öÎļþ£¬È»ºó¿ªÊ¼¶Á»òÕßдÎļþ£¬×îºóÔÙ¹ØÏµÕâ¸öÎļþ×ÊÔ´¡£
È磬ÎļþµÄ¶Á²Ù×÷£º
<?php
$file = fopen('your file path','r');
while(!feof($file)){ //µ±Ã»ÓжÁÈ¡µ½Îļþ½á⣬¼ÌÐøÑ­»·¶ÁÈ¡²Ù×÷
$line = fgets($file); //¶ÁÈ¡µ½Ò»ÐеÄÄÚÈÝ
echo $line.'<br/>';
}
fclose($file) ......

php interface implements multibus

<?php
/*
 * Created on 2009-10-28
 * ·Ö×ÓÈçÃÎo(╯¡õ╰)o
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 interface pusb{
    function verson();
    ......

PHPµÄÒ³Ãæ»º³å´¦Àí»úÖÆob_start()º¯Êý

PHPÓкܶà»úÖÆ¡¢º¯Êý£¬Æäʵ¾ÍÊÇħÊõʦ£¬Öظ´·¢»ÓºÃ£¬ÆäʵÉõÖÁÊǼòµ¥Ó¦Ó㬾ͻá³öÏÖÉñÆæµÄЧ¹û¡£ÕâÀï½²Ò»¸öob_start()º¯Êý¡£
ob_start()º¯ÊýÓÃÓÚ´ò¿ª»º³åÇø,±ÈÈçheader()º¯ÊýÖ®
ǰÈç¹û¾ÍÓÐÊä³ö,°üÀ¨»Ø³µ\¿Õ¸ñ\»»ÐÐ\¶¼»áÓДHeader had all ready send
by”µÄ´íÎó,Õâʱ¿ÉÒÔÏÈÓÃob_start()´ò¿ª»º³åÇøPHP´úÂëµÄÊý¾ ......

ASP PHP ASP.net Éú³É¾²Ì¬Ò³ÃæµÄ·½·¨


Ëæ ×ÅÍøÕ¾·ÃÎÊÁ¿µÄ¼Ó´ó£¬Ã¿´Î´ÓÊý¾Ý¿â¶ÁÈ¡¶¼ÊÇÒÔЧÂÊ×÷Ϊ´ú¼ÛµÄ£¬ºÜ¶àÓÃACCESS×÷Êý¾Ý¿âµÄ¸ü»áÉîÓÐÌå»á£¬¾²Ì¬Ò³¼ÓÔÚËÑË÷ʱ£¬Ò²»á±»ÓÅÏÈ¿¼ÂÇ¡£»¥ÁªÍøÉÏÁ÷ ÐеÄ×ö·¨Êǽ«Êý¾ÝÔ´´úÂëдÈëÊý¾Ý¿âÔÙ´ÓÊý¾Ý¿â¶ÁÈ¡Éú³É¾²Ì¬Ã棬ÕâÑùÎÞÐμä¾Í¼Ó´óÁËÊý¾Ý¿â¡£½«ÏÖÓеÄASPÒ³Ö±½ÓÉú³É¾²Ì¬Ò³£¬½«»á½ÚÊ¡ºÜ¶à¡£
ÏÂÃæµÄÀý×ÓÊǽ«¡¢index.asp?i ......

PHP³£Óú¯ÊýÍÆ¼ö

 
1.²úÉúËæ»ú×Ö·û´®º¯Êý
function random($length) {
 $hash = '';
 $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
 $max = strlen($chars) - 1;
 mt_srand((double)microtime() * 1000000);
 for($i = 0; $i < $length; $i++) {
  $ha ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ