ÎÊÒ»¸öºÜ¼òµ¥µÄPHPÎÊÌâ - PHP / »ù´¡±à³Ì
ÔÚ±¾µØÓÃWindows+IIS¿ª·¢PHP,ÉÏ´«µ½PHPÐéÄâÖ÷»úÖ®ºó£¬·¢ÏֺܶàµØ·½²»¼æÈÝ¡£¸÷λÓÐʲôºÃµÄ½â¾ö°ì·¨£¿ 1¡¢ÉÏ´«µÄ·þÎñÆ÷ÊÇUnixµÄ£¬¶ÔÎļþÃûºÍÎļþÃûµÄ´óСд¶¼Çø·Ö£¬µ«ÎÒÔÚÉè¼ÆµÄʱºò£¬Ã»Óп¼Âǵ½Õâ¸ö£¬ÏÖÔÚÖ»ÄÜÒ»¸öÒ»¸öÐÞ¸ÄÂ𣿠2¡¢´úÂëÈçÏ£¬±¾µØ¿ÉÒÔÕý³£»ñÈ¡Êý¾Ý£¬ÐéÄâÖ÷»úÉϾͲ»ÐУ¬ÏÔʾ¿Õ°×¡£ include("head.php"); $Istr=mysql_query("SELECT mess from genie_index"); @mysql_data_seek($Istr,0); $Irs=@mysql_fetch_array($Istr); $mess=$Irs["mess"]; mysql_close($Mysql_conn); echo $mess µÄֵΪ¿Õ
//¼ÓÕâÁ½Ðп´Ê²Ã´´íÎó ini_set("display_errors", "On"); error_reporting(7); ¼ÓÉÏÈ¥Ö®ºó£¬Ã»ÓÐÈκη´Ó¦¡£ ·þÎñÆ÷ÉÏÊý¾Ý¿â½¨ºÃûÓÐ?Êý¾Ýµ¼ÁËûÓÐ?Êý¾Ý¿âÅäÖöÔÁËûÓÐ? ¼ÓÔÚ head.php µÚÒ»Ðп´Ï include("admin/Config/MySQL_conn.php"); MySQL_conn.phpÄÚÈÝÈçÏ£º //Ô¶³ÌÊý¾Ý¿â $Sql_server='localhost'; $Sql_user='Xinto'; $Sql_pass='xp123456'; $Mysql_conn=mysql_connect($Sql_server,$Sql_user,$Sql_pass); if (!$Mysql_conn){ die('Could not connect: ' . mysql_error()); } mysql_select_db("xxx_123",$Mysql_conn); ÕâÀïÓ¦¸ÃÊÇû´íµÄ£¬Êý¾Ý¿âÀïµÄ±íºÍÊý¾Ý¶¼ÊÇÕý³£µÄ ½¨Òé±¾µØÓÃnigixµ÷ÊÔ @ È¥µô¿´¿´¡£ÒýÓà ÉÏ´«µÄ·þÎñÆ÷ÊÇUnixµÄ£¬¶ÔÎļþÃûºÍÎļþÃûµÄ´óСд¶¼Çø·Ö£¬µ«ÎÒÔÚÉè¼ÆµÄʱºò£¬Ã»Óп¼Âǵ½Õâ¸ö£¬ÏÖÔÚÖ»
Ïà¹ØÎÊ´ð£º
±±¾©2ÄêPHP¾ÑéÇó¼æÖ° ½Ó·Ö ·¹ý½Ó·Ö£¡.¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£ jf~~~~~~~~~~~~~~Ö§³Ö ßÀ¡£¡£ÎÒÃÇÐèÒª¼æÖ°£¬¿ÉÊÇÔõôÁªÏµÄãѽ£¿ ¶¥¡£¡£¡£ »Ø¸´ÄÚÈÝ »Ø¸´ÄÚÈÝÌ«¶ÌÁË£¡ º¼ÖÝÄãÈ¥²»È¥°¡ ¡£¡£¡£¡£¡ ......
ÏÖÓÐÒ»PHP¿Õ¼ä£¬Ö§³ÖMYSQLÊý¾Ý¿â Ϊ½ÚÊ¡·ÑÓã¬ÏÖÏëͨ¹ýÓòÃûתÏòĿ¼ÐÎʽ½øÐйÜÀí£¨¼´½«ÓòÃûA¼Ç¼£Û°üÀ¨¶¥¼¶ÓòÃû¼°¶þ¼¶ÓòÃû£Ý¶¼Ö¸Ïòͬһ¿Õ¼ä£© È磺·ÃÎÊÓòÃû abcd.cn Ö±½Ó·ÃÎÊÍøÕ¾¸ùĿ¼ ·ÃÎʶþ¼¶ÓòÃû ef.abcd.cn ......
¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿ »òÕßÔÚjsÎļþÀïµ÷ÓÃphpÎļþдµÄseesion£¿ PHP¸ÕÈëÃÅѧϰ,ÓÑÇ鶥һ¸ö ¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿ //echo '<script>alert("ok");< ......
ʹÓÃÍøÉ쵀 phpexcelreader À࣬½«ÐéÄâ»úÄÚ´æµ÷ÕûÖµ1024M£¬excelÌå»ýΪ224M£¬ÓÃphpexcelreader¶ÁÈ¡µÄʱºòÄÚ´æ¸ù±¾²»¹»Óã¬Çë½Ì¸÷λÓÐʲôºÃµÄ·½·¨¶ÁÈ¡ÕâÖÖ´óÌå»ýµÄ excel ÎʼÛô£¿ excelÌå»ýΪ224M ·þÁË¡£¡£¡£ ......
ÊÇÓñðÈËдµÄÀà×öµÄ£¬»¹ÔʱÌáʾYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO admin(seq,passwd,type,n ......