С´úÂ루PHP£©
1.
error_reporting(E_ERROR | E_WARNING | E_PARSE); //±¨´í¼¶±ð
@set_time_limit(1000); //ÉèÖú¯ÊýÖ´ÐеÄ×î´óʱ¼ä
set_magic_quotes_runtime(0); //ΪÁË°²È«
define('IN_COMSENZ', TRUE);
define('ROOT_PATH', dirname(__FILE__).'/../'); //µ±Ç°Â·¾¶µÄÉÏÒ»²ãĿ¼
require ROOT_PATH.'./install/var.inc.php';
require ROOT_PATH.'./install/lang.inc.php';
require ROOT_PATH.'./install/db.class.php';
require ROOT_PATH.'./install/func.inc.php';
file_exists(ROOT_PATH.'./install/extvar.inc.php') && require ROOT_PATH.'./install/extvar.inc.php';
$view_off = getgpc('view_off');
define('VIEW_OFF', $view_off ? TRUE : FALSE);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2.
function getgpc($k, $t='GP') {
$t = strtoupper($t);
switch($t) {
case 'GP' : isset($_POST[$k]) ? $var = &$_POST : $var = &$_GET; break;
case 'G': $var = &$_GET; break;
case 'P': $var = &$_POST; break;
case 'C': $var = &$_COOKIE; break;
case 'R': $var = &$_REQUEST; break;
}
return isset($var[$k]) ? $var[$k] : '';
}
Ïà¹ØÎĵµ£º
ÒòΪÎÒÔÚ¹úÍâΪ¶à£¬ÔÚ¹úÄÚÓеãÊ£¬Ò²²»ÖªµÀÉÏʲôÍø±È½ÏºÃ¡£Ïë°Ñ×Ô¼ºµÄ·¿×Ó×â³öÈ¥£¬Ëæ±ãÕÒÁËÒ»¸öʲôÍø·¢²¼ÁËһϣ¬Á½Ìì¾Í×â³öÈ¥ÁË£»¿ÉÏëÕÒphper£¬²»Ôõô³É¹¦¡£Ç°ÄêÊÇ°ïÅóÓÑÕÒ£¬ÓÃÁ˲»ÉÙÇþµÀ£¬µ«Ã»ÉÏcsdn£¬Ã»³É¡£ÏÖÔÚΪ×Ô¼º£¬Ï£ÍûÄÜÕÒµ½ºÏÊʵġ£µ±È»ÕÐÈ˸ú×â·¿²»Ò»Ñù£¬ÄÑÒ»µã²»Ææ¹Ö¡£phpers°¡£¬¿ìÀ´°É... ......
ÎÒ´ÓÊÂÁË6Äê¶àµÄ±à³Ì¹¤×÷£¬ÔÚÕâ֮ǰ×öÁ˽«½ü2ÄêµÄ´¿HTML+CSSµÄÍøÒ³ÖÆ×÷ºÍÉè¼Æ¡£±¾²©¿ÍºÜ¶à´ÎÌáµ½µÄphpcn5.0£¬ÊÇÒ»¿î¼ò½àʵÓõÄÎı¾¹¤¾ß¡£¶ÔÓÚPHP±à³ÌÓÐÊ®·ÖºÃµÄÖ§³Ö£¬¼¸ºõµ½ÁËÍêÃÀ¡£ÎÒµÄPHPÊ×Ñ¡±à³Ì¹¤¾ßÊÇphpcn5.0£¬Ê¹ÓÃphpcn5.0×öPHP±à³Ì£¬¼¸ºõ²»ÓÃÔÙÓÃÆäËüµÄÎı¾¹¤¾ß¡£¶ÔÓÚPHP±à³Ì£¬phpcn5.0ÓÐÕâЩÓŵ㣺
1 ......
ÔÚ PHP ÖУ¬Ä¬ÈϵĴíÎó´¦ÀíºÜ¼òµ¥¡£Ò»ÌõÏûÏ¢»á±»·¢Ë͵½ä¯ÀÀÆ÷£¬ÕâÌõÏûÏ¢´øÓÐÎļþÃû¡¢ÐкÅÒÔ¼°Ò»ÌõÃèÊö´íÎóµÄÏûÏ¢¡£
PHP ´íÎó´¦Àí
ÔÚ´´½¨½Å±¾ºÍ web Ó¦ÓóÌÐòʱ£¬´íÎó´¦ÀíÊÇÒ»¸öÖØÒªµÄ²¿·Ö¡£Èç¹ûÄúµÄ´úÂëȱÉÙ´íÎó¼ì²â±àÂ룬ÄÇô³ÌÐò¿´ÉÏÈ¥ºÜ²»×¨Òµ£¬Ò²Îª°²È«·çÏÕ³¨¿ªÁË´óÃÅ¡£
±¾½Ì³Ì½éÉÜÁË PHP ÖÐһЩ×îΪÖØÒªµÄ´íÎó¼ì² ......