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

PHPµÄheader()תÏòʧ°ÜµÄÒ»¸öÔ­Òò

header()º¯ÊýÓÃÀ´×ªÏò(redirect page)ʱ£¬Èç¹ûµ÷ÓÃÇ°ÓÐÊä³ö£¬±ÈÈçecho»òhtml±êÇ©£¬¾Í»áתÏòʧ°Ü¡£
Èç¹ûµ÷ÓÃÇ°ÓпÕÐÐÒ²»áתÏòʧ°Ü¡£
»¹ÓÐÒ»¸öÔ­Òò£¬¾ÍÊÇ×¢ÒâÄãµÄphpÎļþµÄ×Ö·û±àÂë¡£ÎÒÓöµ½µÄÇé¿öÊÇ£¬µ±×Ö·û±àÂëΪUTF-8ʱ£¬×ªÏòʧ°Ü£¬¸ÄΪANSIʱ³É¹¦¡£¾ßÌåÔ­Òò²»Ã÷£¬½ö¹©²Î¿¼¡£


Ïà¹ØÎĵµ£º

php ´úÌæ echo ·½·¨, »òÕßphpµÄ Ìæ»»Ó﷨ʹÓ÷½·¨.

ÐÞ¸Äphp.iniÎļþ.
ÈçÏÂ.
1. short_open_tag = Off
Èç¹û¸Ä³ÉOn
ÎÒÃÇ¿ÉÒÔÔÚphpÖÐ
<?= $variable?>À´´úÌæ <?php echo $variable ?>
2. asp_tags = Off
Èç¹û¸Ä³ÉOn
ͬÑù¿ÉÒÔÔÚphpÖÐ
<%= $variable %> À´Ìæ´ú<?php echo $variable ?>
ÔõôÑù. ·½±ã°É????
¼ÌÐøÑо¿~~~~~~!!!!~~!~!~!~!~!~!~! ......

ÀûÓÃphpÖеÄevalÀ´Ä£ÄâjavaÖеĶ¯Ì¬´úÀí

ʹÓÃjavaÖеĶ¯Ì¬´úÀí¿ÉÒÔÍê³ÉºÜ¶àÊÂÇ飬±ÈÈ罫ҵÎñʵÀý½øÐÐÍйܣ¬ÊµÏÖAOPµÈ£¬µ«ÊÇPhpÖÐûÓÐʵÏÖÕâÑùµÄ¶«Î÷£¬×òÌìͻȻÏëµ½Æäʵ¿ÉÒÔͨ¹ýevalÀ´Ä£ÄâÒ»¸ö¶¯Ì¬´úÀí»úÖÆ¡£php±Èjava²»Í¬µÄÊÇ£¬phpÊDz»ÐèÒª±àÒëµÄ£¬Òò´ËÖ»ÒªÎÒÃÇÄܹ»¶¯Ì¬Éú³ÉÒ»¶Î´úÂ룬ȻºóÓÃevalÀ´Ö´ÐоͿÉÒԴﵽЧ¹û¡£´úÂëÈçÏ£º
/**
* ´úÀíʵÏÖÀà
*/
inter ......

PHP ÖÆ×÷ͨѶ¼£¨Î壩

ͨѶ¼ÒѾ­´óÖÂÍê³ÉÁË£¬µ«Èç¹û¼Ç¼Êý¶àʱ£¬²éÕÒÆðÀ´ºÜ²»·½±ã£¬Èç¹û¼ÓÒ»¸öËÑË÷¹¦ÄܾͺÃÁË¡£½ñÌìÎÒÃǾÍÀ´ÖÆ×÷Ò»¸öËÑË÷¹¦ÄÜ
ÔÚIndex.phpºÏÊʵĵط½¼ÓÈëËÑË÷¿ò
 <!---ËÑË÷¿ò--->
<!--ÕâÀïµÄËùÓÐֵǰÃæ¼Óǰ׺“S_”ÒÔÇø·Ö-->
<form id="form1" name="form1" method="post" action="Search.php ......

ÓÃPHP×ö¸öÈ˲ÅÕ¾

  ×î½üÓÐÈËÔÚÕбêÒª×ö¸öÏñ£ºwww.webjianzhi.com ÕâÑùµÄÈ˲ÅÕ¾£¬³õ¿´£¬Õâ¸öÍøÂç¼æÖ°Íø£¬½çÃ滹ÊDZȽÏÇåÎúµÄ¡£
 ÕûÌå·ÖÎöÁËһϣ¬Ò»¸öÐÂÎÅÎÄÕ·¢²¼ÏµÍ³£¬Õâ¸ö²»ÊǺÜÄÑ£¬ÁíÒ»¸ö¾ÍÊÇ×ֶε÷ÓÃϵͳ£¬¾ÍÊÇÊ×Ò³µÄÖ°Òµ½éÉÜ£¬¼æÖ°ÈËÆø£¬µÄÕâЩµ÷Óá£
 ÁíÒ»¸ö¾ÍÊÇ»áÔ±·¢²¼ÏµÍ³¡£
  Õû¸öÓñí¸ñ²¼¾Ö£¬ÃÀ¹¤Éϲ»´æÔ ......

PHP»ñµÃÀà³£Á¿£¬ÊôÐÔ£¬·½·¨Áбí

<?php
$p=new ReflectionClass(Àà¶ÔÏó);
$constants=$p->getConstants();//const ¶¨Òå³£Á¿
$properties=$p->getProperties();//ËùÓбäÁ¿ÊôÐÔ
$methods=$p->getMethods();//ËùÓз½·¨
//È«²¿ÒÔÊý×éÐÎÊÆ·µ»Ø
?> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ