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

Óëphp.iniÓйصļ¸¸öPHPº¯Êý

PHPÖÐÌṩËĸöº¯ÊýʵÏÖ¶Ôphp.iniµÄ²Ù×÷£ºini_get¡¢ini_set¡¢ini_get_all¡¢ini_restore
ÆäÖÐ×î³£ÓõÄÊÇini_setºÍini_get¡£
ÏÂÃæ¾ßÌåÀ´ËµËµÕâÁ½¸öº¯ÊýµÄ×÷Ó㺠
ini_get()
»ñÈ¡ÅäÖÃÎļþµÄÑ¡ÏîÖµ£¬¼´»ñÈ¡ÅäÖÃÎļþÖÐijһ¸öÑ¡ÏîµÄÖµ£¬Èç¹ûÊÇtrueÖµ¾Í·µ»Ø1£¬Èç¹ûÊÇfalseÖµ¾Í·µ»Ø0£¬×Ö·û´®¾Í·µ»Ø×Ö·û´®¡£
ÀýÈ磺
<?php
echo 'display_errors = ' . ini_get('display_errors') . "n"; //ÏÔʾ´íÎóÊÇ·ñ´ò¿ª
echo 'register_globals = ' . ini_get('register_globals') . "n";//È«¾Ö±äÁ¿ÊÇ·ñ´ò¿ª
echo 'post_max_size = ' . ini_get('post_max_size') . "n";//×î¶àÄÜÌá½»µÄÎļþ´óС
echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "n"; 
?> 
Êä³ö£º
display_errors = 1
register_globals = 0
post_max_size = 8M
post_max_size+1 = 9
php.iniÉèÖÃÖÐÌṩmagic_quotes_gpc=OnÑ¡ÏîÀ´×Ô¶¯¶ÔpostºÍgetµ½µÄ±äÁ¿Öµ½øÐÐÌØÊâ·ûºÅתÒå
phpÖÐͬʱÌṩÁËaddslashes£¨£©º¯ÊýÀ´Íê³ÉÏàͬµÄ¹¦ÄÜ£¬ÄÇô£¬ÎÒÃÇÔÚд¹ýÂ˺¯ÊýµÄ¹ý³ÌÖУ¬ÎªÁ˼æÈÝÒÔÇ°µÄ°æ±¾£¨ÎÒû²é¹ýµ½µ×´ÓÄĸöphp°æ±¾ÖпªÊ¼Ö§³Ömagic_quotes_gpcÕâ¸öÑ¡Ï»òÕßÊÇÅжÏÕâ¸öÉèÖÃÊÇ·ñ¿ªÆô£¬ÒÔ¾ö¶¨ÊÇ·ñÒªÔÚ³ÌÐòÖжÔgetºÍpost±äÁ¿½øÐÐתÒ壬ËùÒÔÄã¾Í¿ÉÒÔÕâÑùдһ¸öº¯Êý£º
function stringFilter($str)
{
if (ini_get('magic_quotes_gpc)') {
  return $str;
} else {
  return addslashes($str);
}

»¹ÓÐÒ»ÖֱȽϳ£ÓõÄÇé¿ö¾ÍÊÇ£¬Èç¹ûÄã²»ÖªµÀphp.iniÖеÄÈ«¾Ö±äÁ¿ÊÇ·ñ´ò¿ª£¬¿ÉÒÔдһ¸öÕâÑùµÄº¯Êý£º
function getGetVar($var)
{
if (ini_set('register_gobals')) {
  return $var;
} else {
  return $_GET['var'];


ÒÔÉÏÖ»ÊǾÙÁËÁ½¸ö±È½Ï³£¼ûµÄÀý×Óȥ˵Ã÷ini_get£¨£©º¯ÊýµÄÓô¦£¬»¹ÓÐÆäËûµØ·½¿ÉÒÔÓõ½
ini_set£¨£©
ÉèÖÃphp.iniÖеÄijЩ±äÁ¿Öµ£¬¼´ÉèÖÃphp.iniÖÐij¸öÑ¡ÏîÖеÄÖµ£¨ÕâÀïÐèҪעÒâµÄÊÇ£¬ÔÚÖ´Ðк¯ÊýºóÉúЧ£¬½Å±¾½áÊøµÄʱºò£¬Õâ¸öÉèÖÃҲʧЧ£¬ÇÒ²»ÊÇËùÓеÄÑ¡ÏÄܱ»¸Äº¯ÊýÉèÖ㬾ßÌå²Î¿¼Êֲᣩ
ÀýÈçÔÚphp.iniÖеÄÑ¡Ïîdisplay_errorÑ¡Ïî¹Ø±ÕÁË£¬µ«ÊÇÄãÒªÏÔʾ³ÌÐòÖеĴíÎóÐÅÏ¢£¬·½±ãÄãµ÷ÊÔ³ÌÐò£¬ÄÇô¾Í¿ÉÒÔʹÓÃÕâ¸öº¯Êý£º
ini_set("display_errors", "On");
µ±È»»¹ÓÐÆäËûµÄÉèÖ㬿´ÄãʹÓõÄÒªÇó¾ßÌå¿ØÖÆÕâЩѡÏ
ÓÐÒ»¸ö±È½ÏÁé»îµÄÓ÷¨£¬ÊÇÍøÉÏ¿´µ½µÄ£¬±ÈÈçÄãÏëÔÚÅäÖÃÎļþÀïÌí¼Ó×Ô¼ºµÄ°üº¬


Ïà¹ØÎĵµ£º

phpЧÂʸßд·¨ (ת)

0¡¢Óõ¥ÒýºÅ´úÌæË«ÒýºÅÀ´°üº¬×Ö·û´®£¬ÕâÑù×ö»á¸ü¿ìһЩ¡£ÒòΪPHP»áÔÚË«ÒýºÅ°üΧµÄ×Ö·û´®ÖÐËÑÑ°±äÁ¿£¬µ¥ÒýºÅÔò²»»á£¬×¢Ò⣺ֻÓÐechoÄÜÕâô×ö£¬ËüÊÇÒ»ÖÖ¿ÉÒ԰Ѷà¸ö×Ö·û´®µ±×÷²ÎÊýµÄ“º¯Êý”£¨Òë×¢£ºPHPÊÖ²áÖÐ˵echoÊÇÓïÑԽṹ£¬²»ÊÇÕæÕýµÄº¯Êý£¬¹Ê°Ñº¯Êý¼ÓÉÏÁËË«ÒýºÅ£©¡£
1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿ ......

phpºÍapache°æ±¾Æ¥ÅäÎÊÌâ(¸ãÁËÒ»ÕûÌì,×°ÁËÒ»´Îϵͳ)

1:·ÅÁË6¸öÎļþÔÚcÅÌÏÂ(php5ts.dll,libmysql.dll ,php_gd2.dll,php_mysql.dll,php_mbstring.dll ),Ò»¸öÔÚwindowsÏÂ,ÁíÎå¸öÔÚwindows/system32ÏÂ
2:ÅäÖÃÁËpath
3:ÃüÁî:httpd.exe -w -n "Apache2" -k start À´²é¿´ÊÇÄÄÒ»ÐеĴíÎóÐÅÏ¢.
×ܽá:µ½ÏÖÔÚΪֹ,ÕûÁËÒ»Ìì,×°ÁËÈý´ÎϵͳµÄÂé·³ÖÕÓÚÇ×ÉíÖ¤Ã÷ÁË,
Õâ¸ö×ï¿ý»öÊײúÉúµÄÔ­Òò ......

php±àÒëgd³ö´í!(Òѽâ¾ö)

php±àÒëgd³ö´í!(Òѽâ¾ö)
ÔÚ32λubuntu9.04ÉϱàÒëphp5.2.12,µ½gdʱmake³ö´í:
ext/gd/libgd/.libs/gd_png.o: In function
`php_gd_gdImageCreatefromPngCtx':
/home/test/php-5.2.12/ext/gd/libgd/gd_png.c:142: undefined reference to
`png_check_sig'
collect2: ld returned 1 exit status
make: *** [sapi/cli/p ......

PHP»·¾³ÅäÖÃ

apache_2.2.8+ mysql_5.1.41+ php-5.2.12+ phpMyAdmin-3.2.5
1,°²×°apacheĬÈÏ°²×°¼´¿É
2,°ÑÏÂÔصÄphp5.2.12½âѹ°Ñ½âѹÎļþ¼ÐµÄËùÓÐÎļþ¸´ÖƵ½DÅÌPHPÎļþ¼ÐÖÐ:
3,´ò¿ªPHPÎļþ¼ÐÖаÑphp.ini-dist¸ÄΪphp.ini²¢´ò¿ª²¢°Ñ
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mhash.dll
extension=php_mime ......

ÎÒµÄ2009Ä깤×÷¾­ÑéС½á(php³ÌÐòÔ±)

תÑÛÓÖÊÇÒ»Äê¹ýÈ¥ÁË£¬Ëƺõ£¬×î½üÎåÁùÄêÀ´£¬Ò»Ö±¶¼¹ýµÃ²»ÄÇô˳Àû£¬½ñÄ껹ËãÊDz»´í£¬ÖÁÉÙ£¬ÔÚ¿Í»§¡¢ÀÏ°åºÍͬʵİïÖúÏ£¬Ò»ÄêµÄ¹¤×÷£¬ÖÕÓÚÔÚÄêÇ°ÊÕβÁË¡£ÔÚ´ËС½áһϣ¬ÎüȡһЩ½Ìѵ£¬ÒÔÃâÀ´ÄêÖØ·¸ÏàͬµÄ´íÎó¡£
1¡¢×öÁËÒ»¸ö×îÕýÈ·µÄÑ¡Ôñ£º¹Ò¿¿Ò»¼ÒÈí¼þ¹«Ë¾×ö³ÌÐò¡£×ö³ÌÐòºÍ×öÒµÎñ£¬ÊDz»Ó¦¸Ãͬһ¸öÈ˽øÐеģ¬¾ÍËã¿Í»§ÊÇÖ÷¶¯É ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ