PHP»ñµÃÀà³£Á¿£¬ÊôÐÔ£¬·½·¨Áбí
<?php
$p=new ReflectionClass(Àà¶ÔÏó);
$constants=$p->getConstants();//const ¶¨Òå³£Á¿
$properties=$p->getProperties();//ËùÓбäÁ¿ÊôÐÔ
$methods=$p->getMethods();//ËùÓз½·¨
//È«²¿ÒÔÊý×éÐÎÊÆ·µ»Ø
?>
Ïà¹ØÎĵµ£º
ÐÞ¸Äphp.iniÎļþ.
ÈçÏÂ.
1. short_open_tag = Off
Èç¹û¸Ä³ÉOn
ÎÒÃÇ¿ÉÒÔÔÚphpÖÐ
<?= $variable?>À´´úÌæ <?php echo $variable ?>
2. asp_tags = Off
Èç¹û¸Ä³ÉOn
ͬÑù¿ÉÒÔÔÚphpÖÐ
<%= $variable %> À´Ìæ´ú<?php echo $variable ?>
ÔõôÑù. ·½±ã°É????
¼ÌÐøÑо¿~~~~~~!!!!~~!~!~!~!~!~!~! ......
£¨1£©
Warning: mysql_query() [function.mysql-query]: Access denied for user
'ODBC'@'localhost' (using password: NO) in C:\Program Files\Apache
Software Foundation\Apache2.2\htdocs\TM\conn\conn.php on line 32
Warning: mysql_query() [function.mysql-query]: A link to the server could
not be est ......
//È¥³ý script ½Å ±¾
function delScript($string){
$pregfind = array("/<script.*>.*<\/script>/siU",'/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i');
$pregreplace = array('','');
$string = preg_replace($pregfind, $pregreplace, $string);
return $str ......
ÔÎÄ
£¨Ó¢ÎÄ£©µØÖ·£º
http://www.phpit.net/article/using-curl-php
°æȨÉùÃ÷£ºÊðÃû-·ÇÉÌÒµÐÔʹ
ÓÃ-½ûÖ¹ÑÝÒï 2.0
ͻ񻣼
ÔÚÕâƪÎÄÕÂÖÐÖ÷Òª½²½â
php_curl¿âµÄ֪ʶ£¬²¢½ÌÄãÈçºÎ¸üºÃµÄʹÓÃphp_curl¡£
¼ò½é
Äã¿ÉÄÜÔÚÄãµÄ±àдPHP½Å
±¾´úÂëÖлáÓöµ½ÕâÑùµÄÎÊÌ⣺ÔõôÑù²ÅÄÜ´ÓÆäËûÕ¾µã»ñÈ¡ÄÚÈÝÄØ£¿ÕâÀïÓм¸¸ö½â¾ö·½Ê½ ......
PHPµÄÒ»¸öÊý¾Ý¿â²Ù×÷Àà,ÒÔUTF8¸ñʽдÈë,Êý¾Ý¿âÄÚÖ±½ÓÏÔʾÕý³£ÖÐÎÄ,·ÀÖ¹²éѯ³ö´í
/**
* @author xggxnn
* ±¾ÀàÓÃÓÚʵÏÖÓйØÊý¾Ý¿âµÄ·ÃÎÊ
*
*/
class DBConnection {
private $host = "";
private $user = "";
private $pass = "";
private $DBname = "";
public $isConnected = false;
/**
* ¹¹Ôìº ......