PHP³ÌÐòµ÷ÊÔÈÕ¼Ç
ÎÊÌâÒ»£ºcactiÈç·¨Õý³£µÇ¼£¬Ã»Óб¨PHP³ÌÐò´íÎó
½â¾ö¹ý³Ì½â¾ö¹ý³Ì£º¿ªÆôPHP±¨´íÏÔʾ£¨ÔÚµ÷ÊÔʱ£¬Ò»Ö±¿¨ÔÚÕâ¶ù£¬ÓÉÓÚÊÇ·þÎñÆ÷ÉÏ£¬Ã»ÓпªÆô±¨´í³ÌÐò£©display_errors = On
·¢ÏÖ±¨Warning: session_start() [function.session-start]: open(/usr/local/apache/phpsession/h/s/c/sess_hschnfd9dl365a5ibpf6jh17q7, O_RDWR) failed: No such file or directory (2) in /www/web/cacti/include/global.php on line 134
ûÓÐÕÒµ½sessionµÄ´æ´¢Î»ÖÃ
·¢ÏÖphp.iniÖÐsession±£´æµÄλÖÃÉèÖÃΪsession.save_path = "3;/usr/local/apache/phpsession"
½â¾ö·½·¨: ÐÞ¸Äphp.ini
·½·¨1.session.save_path = "/tmp"
·½·¨2.session.save_path = "3;/usr/local/apache/phpsession"
Ïà¹ØÎĵµ£º
1. ´Óphp4 ¿ªÊ¼Ôö¼ÓÁ˱àÒ벿·Ö£¬php4½«ÔÚÔËÐÐǰ¼ì²éÕû¸ö½Å±¾µÄÓï·¨£¬ÔÚ´Ë»ù´¡ÉϱàÒëËùÓеĺ¯Êý£¬²¢ÇÒÔËÐнű¾µÄÖ÷Òª²¿·Ö£¬Èç¹ûphp ³É¹¦´´½¨ÁËÖ¸¶¨µÄhtml,Ôò˵Ã÷½Å±¾Öв»´æÔÚ´íÎ󣬺¯Êý±àÒëÕýÈ·¡£ÒÑʵÏÖ±àÒëÒ»´Î£¬¶à´ÎÔËÐС£php4 ¿ªÊ¼Ê¹ÓÃ.php ΪÀ©Õ¹Ãû
2.php4 Ö§³Öcom,Óû§¿Éͨ¹ýº¯Êýcom,com_get,com_invoke,com_load,com_ ......
ŪÁ˰ëÌì, PHP ÖÕÓÚÄܵ÷ÓÃÎÒµÄC# dll ÁË.
¸ÃËÀµÄ,ÎÒ¶ÔC# COM×¢²áÒ»Ïò²»Á˽â, PHP ÎĵµÉÏÖ»¸øPHPÄDz¿·ÖÄÚÈÝ,û¸æËßÎÒÔõôŪdll
ÎÒ»¹ÉµÙâÙâµÄÓà Regsvr32 ×¢²áÄǸöc# dll.
±³¾°:
Windows xp sp3 ; apache 2.2.14 ; php 5.2.12 ;
VS2010 beta ;
ÓïÑÔ:
PHP5 , C#
C#²¿·Ö:
´´½¨Ò»¸ö C# Class Library . (dll) ......
1.Appserv ÊÇʲô£¿
Appserv ÊÇPHPÍøÒ³¼ÜÕ¾¹¤¾ß×éºÏ°ü£¬¿ÉÒÔ½«ÍøÂçÉÏÃâ·ÑµÄ¼ÜÕ¾×ÊÔ´ÖØÐ°ü×°³Éµ¥Ò»µÄ°²×°³ÌÐò¡£ËüÌṩÁ˼òÒס¢¿ìËÙµÄPHPÔËÐл·¾³µÄ´î½¨»úÖÆ£¬¶ÁÕßÖ»Ðè°´ÕÕÆÕͨӦÓÃÈí¼þµÄ°²×°·½Ê½¾Í¿ÉÒÔÍê³ÉApache+MySQL+PHP+phpMyAdminµÄ°²×°ÓëÅäÖù¤×÷¡£
2.Appserv ÏÂÔØµØÖ·
http://www. ......
ÏÖÔÚ¶ÔPHP¸Ð¾õÔ½À´Ô½Ë³ÊÖÁË£¬¶ÔHTMLµÄ±êǩԽÀ´Ô½ÊìϤÁË£¬¿ÉÊǶÔPHPµÄ²å¼þµÄÈÏʶ»¹ÎªÖ®ÉõÉÙ¡£
µ«ÊÇ£¬ËµÊµ»°£¬Ä¿Ç°µÄÎÒÃ²ËÆÒ²²»ÐèҪʹÓÃPHPµÄ²å¼þ£¬Óòå¼þµÄÄ¿µÄ¿ÉÄÜÊÇΪÁËÏԵñȽÏÅ£°É£¬ºÇºÇ¡£
µ«ÊÇ»¹ÊÇ̤̤ʵʵµÄѧϰ°É£¬±Ï¾¹¶îµÄC++»¹Ã»ÓÐѧ£¬¶ÔÓÚPHPµÄ·â×°ºÍ±à³ÌÒ»µãÒ²²»Á˽⡣ ......
REQUEST_URI ·µ»ØµÄÊǰüÀ¨ºóÃæÊý¾Ý´®µÄµØÖ·£¬Èç index.php?str=1234 PHP_SELF ÊÇ index.php
--------------------------------------------------------------------------------
$_SERVER[’PHP_SELF’]ÔÚ¿ª·¢µÄʱºò³£»áÓõ½£¬Ò»°ãÓÃÀ´ÒýÓõ±Ç°ÍøÒ³µØÖ·£¬²¢ÇÒËüÊÇϵͳ×Ô¶¯Éú³ÉµÄÈ«¾Ö±äÁ¿£¬Ò²»áÓÐʲôÎÊÌâô?È ......