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

php¼ì²âajax·½Ê½µÄµ÷ÓÃÇëÇó

±ÈÈçÒª¸øÓû§±¨¸æÒ»¸ö´íÎó£¬ÓÃÏÂÃæµÄ·½·¨£º
ʹÓÃset_error_handlerÉèÖÃ×Ô¼ºµÄ´íÎó´¦Àíº¯Êý£¬ÔÚ±¨´íµÄµØ·½Ê¹ÓÃtrigger_error£¬ÔÚ×Ô¶¨ÒåµÄ´íÎó´¦Àíº¯ÊýÖиøÓû§ÏÔʾһ¸ö³ö´íÐÅÏ¢Ò³Ãæ¡£
µ«
ÊÇÈç¹ûµ÷ÓÃtrigger_errorµÄÕâ¸öÒ³ÃæÊDZ»Ò»´ÎajaxÇëÇó´¥·¢µÄ£¬ÄÇôajax·µ»Øºó½«µÃµ½Ò»´ó¶ÑÓÃÓÚÏÔʾ´íÎóµÄhtml´úÂë¡£¶øÒ»°ã
ajaxµ÷Óö¼»áÔ¼¶¨×Ô¼ºµÄ´íÎóÐÅÏ¢¸ñʽ£¬ËùÒÔºǫ́php´úÂëҪôʹÓÃÁ½ÖÖ²»Í¬µÄ±¨¸æ´íÎóµÄ·½Ê½£ºÒ»ÖÖ¸øajaxµ÷ÓÃÇëÇóʹÓã¬Ò»ÖÖ¸øÆÕͨµÄÒ³ÃæË¢ÐÂʹ
Óã¬ÒªÃ´Ê¹ÓÃͳһµÄ´íÎ󱨸æ¸ñʽ£¬ÔÚ±¨¸æµÄʱºòÅжÏÒ»ÏÂÕâÊÇÒ»¸öajaxµ÷ÓÃÇëÇó»¹ÊÇÒ»¸öÆÕͨµÄÒ³ÃæË¢ÐÂÇëÇó¡£
ÔÚphp´úÂëÖмì²âÊÇ·ñajaxµ÷ÓÃÇëÇóµÄ·½·¨ÊÇ£º
    if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&
            strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
                 // this is an ajax request
    }
Õâ¸ö·½·¨À´×ÔÓÚgoogleËÑË÷£¬¾Ý˵ֻÊÊÓÃÓÚjQuery·¢³öµÄajaxÇëÇó¡£


Ïà¹ØÎĵµ£º

PHP smarty foreachÓ÷¨£¡

ÊôÐÔÃû³Æ£ºfrom£¬item,key,name
×¢Ò⣺
1,fromºÍitemÊDZØÒªÊôÐÔ
2,{foreach}Ñ­»·µÄname¿ÉÒÔÊÇÈκÎ×Öĸ£¬Êý×飬Ï»®ÏßµÄ×éºÏ£¬²Î¿¼PHP±äÁ¿¡£
3,{foreach}Ñ­»·¿ÉÒÔǶÌ×£¬Ç¶Ì×µÄ{foreach}µÄÃû³ÆÓ¦µ±»¥²»Ïàͬ¡£
ÎļþÒ»£ºindex.tpl
<b>ÏÂÃæµÄÊý¾Ý·Ö±ðÊÇ£º</b>
<ul>
{foreach from=$myArray1 key=k ite ......

phpÖеÄevalºÍJavaScriptÖеÄeval

phpÖеÄevalºÍJavaScriptÖеÄevalÇø±ð£º
Definition and Usage

¶¨ÒåºÍÓ÷¨
The eval() function evaluates a
string as PHP code.
eval()º¯ÊýµÄ×÷ÓÃÊÇ£º·µ»ØÓëPHP´úÂëÏà¶ÔÓ¦µÄ×Ö·û´®¡£
The string
must be valid PHP code and must end with semicolon.
Õâ¸ö×Ö·û´®±ØÐëÊÇÓÐЧµÄPHP´úÂ룬
²¢ÇÒ±ØÐëÒԷֺŽáÊø¡ ......

php£ºÐÞ¸ÄĿ¼ÏÂÎĵµÈ¨ÏÞ£¨777£¬644 £©


ÎÄÕ·ÖÀà:PHP±à³Ì
PHP chmod() º¯Êý (upload image permit)
PHP Filesystem º¯Êý
¶¨ÒåºÍÓ÷¨
chmod() º¯Êý¸Ä±äÎļþģʽ¡£
Èç¹û³É¹¦Ôò·µ»Ø TRUE£¬·ñÔò·µ»Ø FALSE¡£
Óï·¨
chmod(file,mode)
²ÎÊý
ÃèÊö
file
±ØÐè¡£¹æ¶¨Òª¼ì²éµÄÎļþ¡£
mode
¿ÉÑ¡¡£¹æ¶¨ÐµÄȨÏÞ¡£
mode ²ÎÊýÓÉ 4 ¸öÊý×Ö×é³É£º
µÚÒ»¸öÊý×ÖÓ ......

2010Äê×îÐÂPHPÀàµÄ¾«Ëõ¹éÄÉ

Ò»£º½á¹¹ºÍµ÷ÓÃ(ʵÀý»¯)£º
class className{} £¬µ÷Óãº$obj = new className();µ±ÀàÓй¹Ô캯Êýʱ£¬»¹Ó¦´«Èë²ÎÊý¡£Èç$obj = new className($v,$v2...);
¶þ£º¹¹Ô캯ÊýºÍÎö¹¹º¯Êý£º
1¡¢¹¹Ô캯ÊýÓÃÓÚ³õʼ»¯£ºÊ¹ÓÃ__construct()£¬¿É´ø²ÎÊý¡£
2¡¢µ«Îö¹¹º¯Êý²»ÄÜ´ø²ÎÊý£¨ÓÃÓÚÔÚÏúÈ¥Ò»¸öÀà֮ǰִÐÐһЩ²Ù×÷»ò¹¦ÄÜ£©¡£Îö¹¹º¯ÊýÓà ......

ASP.NET+JQueryʵÏÖAJAXµÄ·ÖÒ³

  AJAXµÄ·ÖÒ³£¬ÊµÏÖ˼·ÊÇ£º
¡¡¡¡1.ÀûÓÃ$.fn.extendÔÚJQuery¿ò¼ÜÏÂÀ©Õ¹pagerÀà
¡¡¡¡2.½«»ñÈ¡¼Ç¼×ÜÊýÓëÏàÓ¦Ò³¼Ç¼µÄºǫ́·½·¨£¬Ð´Ôڼ̳Ð×ÔIHttpHandlerÀàµÄHandler.ashx.csÀ࣬µ±È»Êµ¼ÊÉÏÓÃaspx.csÎļþдºǫ́·½·¨Ò²Ã»ÎÊÌ⣬µ«ÓÉÓÚ.ashx.csÎļþÎÞÐè´¦ÀíÒ³ÃæÖî¶àʼþÒò¶øЧÂʸü¸ß¡£
¡¡¡¡3.ÔÚ³ÊÏÖÒ³ÃæÉϼÓÔØpagerÀà
¡¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ