PHPÅжÏÒ³Ãæ´«Èë²ÎÊýÊÇ·ñºÏ·¨ - PHP / »ù´¡±à³Ì
<?php
if (isset($_GET['cid'])&&(!is_numeric($_GET['cid']))) {NewUrl (1,'ID²ÎÊý³öÏÖ·ÇÊý×Ö´íÎó!','-1');}
$nLink = $db->SelectSQL("SELECT `ColumnRela`,`ColumnName` from `" . $dbprefix . "column` WHERE `ID` = '" . $_GET['cid'] . "'");
if (isset($_GET['cid'])&&(count($nLink)==0)){NewUrl (1,'²»´æÔڵķÖÀà!','-1');}
?>
ÕâÀïΪҳÃæ½ÓÊÕÁËÒ»¸öÃûΪcidµÄ²ÎÊý£¬ÎÒÏëµ±Õâ¸ö²ÎÊý´æÔÚµÄʱºò²ÅÅжÏËüÊÇ·ñÊǸöºÏ·¨µÄ²ÎÊýÀàÐͺÍÔÚÊý¾Ý¿âÊÇ·ñ´æÔÚ£¬Õâ¸öÇ°ÃæÀàÐÍÅжÏòËÆû´í£¬ºóÃæÅжÏÔÚÊý¾Ý¿âÀïÊÇ·ñ´æÔÚºÃÏñ³öÁË´íÎ󣬵±Õâ¸ö²ÎÊýΪ¿ÕʱҲ×ÜÌá'²»´æÔڵķÖÀ࣡'
ÄÄλ¸ßÈËÀ´Ö¸µãÒ»ÏÂÎÊÌâ³öÔÚÄÄÀ
count($nLink)==0ÕâÊÇʲôÒâ˼°¡
//if (isset($_GET['cid']) && $_GET['cid'] &&(count($nLink)==0)){
// NewUrl (1,'²»´æÔڵķÖÀà!','-1');
//}
Ϊ¿ÕµÄÇé¿öÄãûÓÐÔÚµÚÒ»²½ÀÂǵ½£¬×ÔÈ»¾ÍÅÜÁËÏÂÃæÀ´·³ÄãÁË£¬²éѯһ¸öIDΪ¿ÕµÄ½á¹û¼¯ÄãÈ¥countÒ²ÊÇ0¡£°ÑµÚÒ»²½È¥µôµã¶«Î÷¾Í¿ÉÒÔ
PHP code:
if (is_numeric($_GET['cid']))) {NewUrl (1,'ID²ÎÊý³öÏÖ·ÇÊý×Ö´íÎó!','-1');}
#3Â¥Õý½â.żÊÇС²ËÄñ.
isset($_GET['cid'])ÅжÏÍêȫûÓбØÒª£¬ÄãÖ»Òª´«ÁËcid£¬ÄÄÅÂËüÊǿյģ¬isset($_GET['cid'])ÒÀÈ»ÊÇÕ棡
<?php
if (isset($_GET['cid'])&&(!is_numeric($_GET['cid'])))
{
NewUrl (1,'ID²ÎÊý³öÏÖ·ÇÊý×Ö´íÎó!','-1');
}
//µ±Õâ¸ö²
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬Ôõôд¸öheadÍ·²¿ ÈÃÒ³Ã滺´æ1ÐÇÆÚ¡£
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Äã°ÑÀïÃæµÄʱ¼ä£¬¸Ä³Éµ±Ç°Ê±¼ä¼ÓÉÏÒ»¸öÐÇÆÚ
¼ÇµÃҪת»»³Égmtʱ¼ä
ÎÒÕâÑùдµÄ ²»ÖªµÀÐв»ÐС£
Ò»¸öÐ ......
Çë½Ì¸ßÊÖ°ï棬session_start£¨£©·ÅÔÚÍⲿµÄÎļþÓà require »ò include °üº¬½øÀ´£¬ÇëÎÊÕâÑù×öºÏÀíÂ𣿣¿´úÂëÔËÐÐÊÇÕý³£µÄ£¬ÕâÑù×öºÏÀíÂ𣿣¿Çë¸ßÊÖÖ¸µã¡£¡£¡£¡£ лл····
require »ò include ......
ʹÓÃÍøÉ쵀 phpexcelreader À࣬½«ÐéÄâ»úÄÚ´æµ÷ÕûÖµ1024M£¬excelÌå»ýΪ224M£¬ÓÃphpexcelreader¶ÁÈ¡µÄʱºòÄÚ´æ¸ù±¾²»¹»Óã¬Çë½Ì¸÷λÓÐʲôºÃµÄ·½·¨¶ÁÈ¡ÕâÖÖ´óÌå»ýµÄ excel ÎʼÛô£¿
excelÌå»ýΪ224M
·þÁË¡£¡£¡£ ......
ÔÚPHPÖÐÓÐûÓÐÏñASPÖеļǼ¼¯(ADODB.Recordset )ÕâÖÖÀàÐ͵ĶÔÏó?¿É²»¿ÉÒÔÏñÔÚASPÖÐÒ»Ñùͨ¹ý¼Ç¼¼¯À´¸üÐÂÊý¾Ý¿â.ÈçÏÂÃæÕâÑù.
VBScript code:
set rs=server.createobject("adodb.recordset")
......
ÔÚÐÞ¸ÄÍêphp.ini£¬ºÍhpptd.confºó´ò¿ªhttp://localhostÄܹ»ÏÔʾIt Works!ͨ¹ýapacheÖ§³Öphp5²âÑé,²»¹ý²»ÖªµÀΪʲôºóÀ´´ò¿ªhttp://localhostºÍhttp://localhost/index.phpЧ¹û¶¼ÊÇPHPÐÅÏ¢¡£
´ò¿ªhttp://localhost/i ......