PHP ¾Å¾Å³Ë·¨±í
¿ÉÒÔ¼òµ¥µÄÓÐÁ½¸öforÑ»·±íʾ ¾Å¾Å³Ë·¨±í,µ«ÊDz¢²»ÖªµÀÈçºÎ½øÐÐURLµÄÉèÖÃ.
<?php
for($a =1;$a<=9;$a++)
{
for($b =1;$b<=$a;$b++)
{$c =$a *$b;
echo "$a*$b=$c ";
}
echo "<p>";
}
?>
Ïà¹ØÎĵµ£º
´úÂëÈçÏÂ,javascript:alert(document.cookie=”adminuser=”+escape(”admin”));javascript:alert(document.cookie=”adminpass=”+escape(”admin”));javascript:alert(document.cookie=”admindj=”+escape(”1″));
´ÓÕâ¾ä´úÂë¿ÉÒÔ¿´³ö£¬¾ÍÊÇÀûÓÃÁËcook ......
ÔÚÏÖÔÚ¸÷ÖֺڿͺáÐеÄʱºò£¬ÈçºÎʵÏÖ×Ô¼ºphp´úÂ밲ȫ£¬±£Ö¤³ÌÐòºÍ·þÎñÆ÷µÄ°²È«ÊÇÒ»¸öºÜÖØÒªµÄÎÊÌ⣬ÎÒËæ±ã¿´ÁËϹØÓÚphp°²È«µÄ×ÊÁÏ£¬²¢²»ÊǺܶ࣬ÖÁÉÙ±ÈaspÉÙ¶àÁË£¬ºÇºÇ£¬ÓÚÊǾÍÏëдµã¶«Î÷£¬À´·ÀÖ¹ÕâЩ¿ÉÄܳöÏÖµÄÇé¿ö¡£ÕâÀïûÓÐÌ«ÉîµÄ¼¼Êõº¬Á¿£¬ÎÒÖ»ÊDZȽϼòµ¥µÄ̸ÁË̸¡£(ÒÔϲÙ×÷ÈçÎÞ¾ßÌå˵Ã÷£¬¶¼ÊÇ»ùÓÚPHP+MySQL+ApacheµÄ ......
$_SERVER['PHP_SELF'] #µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë document rootÏà¹Ø¡£
$_SERVER['argv'] #´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£
$_SERVER['argc'] #°üº¬´«µÝ¸ø³ÌÐòµÄÃüÁîÐвÎÊýµÄ¸öÊý£¨Èç¹ûÔËÐÐÔÚÃüÁîÐÐģʽ£©¡£
$_SERVER['GATEWAY_INTERFACE'] #·þÎñÆ÷ʹÓÃµÄ CGI ¹æ·¶µÄ°æ±¾¡£ÀýÈ磬“CGI/1.1”¡£
$_SERVER['S ......
ͨ¹ýħÊÞ¿´PHPÉè¼ÆÄ£Ê½
ǰ¶Îʱ¼ä¿´µ½ÓÐÈËÓÃħÊÞÀ´½âÊÍÉè¼ÆÄ£Ê½£¬¸Ð¾õºÜÓÐÒâ˼£¬ÓÚÊÇÎÒ°ÑËü¸ÄÁ˸ģ¬ÓÖÌí¼ÓÁËЩÉè¼ÆÄ£Ê½ÄÚÈÝ£¬½ñÌì·¢³öÀ´¡£ÓÐЩµØ·½½è¼øÁËǰÈ˵ÄÄÚÈÝ£¬Ã»ÓÐ×¢Ã÷£¬ÇëǰÈ˲»Òª¼û¹Ö°¡¡£
ÕâÀïÓôó¼Ò¸ÐÐËȤµÄħÊÞ3À´ÌÖÂÛPHPµÄ¼¸ÖÖ³£¼ûµÄÉè¼ÆÄ£Ê½£ºµ¥¼þģʽ¡¢²ßÂÔģʽ¡¢¹¤³§Ä£Ê½¡¢¹Û²ìÕßģʽ¡£½ñÌì¾Í½²ÕâËĸö°É£¬Ò ......
½ñÌìÊÇÒ»¸öÖµµÃ¼ÍÄîµÄÈÕ×Ó,ÖÕÓڰѱðµÄÊÂÇé¶¼¸ÉµôÁË,¿ÉÒÔÒ»ÐÄÒ»ÒâµÄѧϰÎÒ×î°®µÄPHPÁË,С»¶ºôÒ»ÏÂ.Ò®~~
Ê×ÏÈ.½áºÏ×Ô¼ºµÄ˼¿¼,ÓÐÁ˼¸¸ö¹ØÓÚ1+1=2µÄ±íʾ·½·¨,¾ßÌåÂÞÁÐÈçÏÂ:
Ê×ÏÈÊÇÒ»Öֺܼòµ¥µÄ±íʾ·½·¨:
<?php
$a =1+1;
echo "1+1=".$a;
?>
//ÕâÖÖ·½·¨ÓõIJ¢²»¶à,Ö»ÊÇΪÁ˼ÓÉî¶Ô±äÁ¿ ......