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

php ·À×¢Èë¹¥»÷º¯Êý

/*php ·À×¢È뺯Êý
string  $feifa  ÏÞÖÆÔªËØ×é³É
ÈçÓзǷ¨×Ö·ûÌø×ªµ½ÉÏÒ»Ò³ ·µ»Ø 0  Ã»Óзµ»Ø 1
*/
//ʹÓ÷½·¨
//$feifa=array("select","delete","from","update","create","destory","drop","alter","and","or","like","exec","count","*","chr","mid","master","truncate","char","declare",";","-","+");
//$arrpostget=array("http://www.baidu.select cretecomdmin","wangw");
//echo saftsql($feifa,$arrpostget);
function saftsql($feifa,$arrpostget){
//
$arrpostget=array_merge((array)$HTTP_PSOT_VARS,(array)$HTTP_GET_VARS);
  if($arrpostget){
         foreach($arrpostget as $key=>$value){
              for($i=0;$i<count($feifa);$i++){
                //ÕÒ·Ç·¨×Ö·ûÔÚ$valueÖеÄλÖÃ
                $flag=strpos($value,$feifa[$i]);              
                if($flag)
                {                    
                 echo "<script
type=\"text/javascript\">alert('URLÓзǷ¨×Ö·û');</script>";
               


Ïà¹ØÎĵµ£º

phpǶÈëhtml

<?php
function outputMyName($fname) {
   echo "ÎÒµÄÃû×ֽР";
    echo "ÖÜ ".$fname."<br />";
}
 ?>
<html>
<body>
<?php
outputMyName("ʤ³¬");
outputMyName("Óîºã");
outputMyName("ÓîÃË");
?>
</body>
</html>
½á¹ûÈçÏ£ ......

PHP ʵÏÖ²éѯ½á¹û¶¯Ì¬×éºÏÊä³ö

      Êý¾Ý¿âÖвéѯµ½ÒÔϵĽá¹û£º
     cname      linename    minute
     aa              c1      & ......

phpÖÐpear°²×°³öÏÖ´íÎó

      ×î½üÏë°²×°PEAR(PHP Extension and Application Repository),µ«ÊÇÔÚÖ´ÐÐÅú´¦ÀíÎļþgo-pear.batµÄʱºò³öÏÖÁË´íÎó£º
phar "C:\php\PEAR\go-pear.phar" does not have a signature
PHP Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: phar error: ......

PHPͳ¼ÆÍøÕ¾·ÃÎÊ´ÎÊý·ÀË¢ÐÂ

<?
@session_start();
$counter = intval(file_get_contents("counter.dat"));
if(!$_SESSION['jingyun'])
{
$_SESSION['jingyun'] = true;
$counter++;
$fp = fopen("counter.dat","w");
fwrite($fp, $counter);
fclose($fp);
}
?>
×Ü·ÃÎÊ <span style="font-size:14px; color:#FF6600" mce_sty ......

PHP·ÖÒ³´úÂë

Í·²¿µ÷ÓÃ
 <?
require('conn.php');
$sql1="select id from news";
$query1=mysql_query($sql1,$conn);
$sun_num=mysql_num_rows($query1);
$gs=20;
$page_num=ceil($sun_num/$gs);
include("../subpage.php");
//´«¹ýÀ´µÄÒ³Êý²ÎÊý
$PB_page=$_GET['PB_page'];
if ($PB_page==1 or empty($PB_page)){
$ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ