PHP ¿ª·¢ÖÐÊý¾Ý¿â¼°ÆäÏà¹ØÈí¼þµÄÑ¡ÐÍ¿¼ÂÇ
PHP °æ±¾¸÷Ò죬ÒѾֹͣÉý¼¶¿ª·¢µÄÓÐ 4.0 ϵÁÐµÄ 4.4.x£¬µ«ÏÖÔÚ»¹Óв¿·ÖÉú²ú»·¾³ÔÚÅÜÕâ¸ö°æ±¾£¬ÐèÒª¼ÌÐøά»¤´úÂë¡£PHP 5.0 ϵÁÐÊÇÏÖÔÚ¿ª·¢ºÍÓ¦ÓõÄÖ÷Á÷°æ±¾£¬ÓÐ 5.1.x ºÍ 5.2.x ϵÁС£PHP 6.0 Ä¿Ç°»¹ÊÇÊÔÓð汾£¬Óà PHP ¿ª·¢Èí¼þ²úÆ·µÄÈËÏÖÔÚ¿ÉÒÔÔ¤ÏÈ×÷¼æÈÝÐÔ²âÊÔ¡£
PHP Ö§³ÖµÄÊý¾Ý¿âºÜ¶à£¬°üÀ¨ PHP ±¾Éí×Ô´øµÄÊý¾Ý¿âÇý¶¯×é¼þ£¬ÀýÈç mysql.dll¡¢oci_oracle µÈ¡£PHP ´Ó 5.1 °æ±¾ÒÔºóÕýÔÚÁ¦ÍÆÆäͨÓõÄÊý¾Ý¿âÇý¶¯×é¼þ PDO£¬Í¨¹ýÕâ¸ö¸ß¶È³éÏóµÄÊý¾Ý¿â´æÈ¡×é¼þ£¬PHP ¿ÉÒÔÖ§³ÖÄ¿Ç°¾ø´ó¶àÊýÊý¾Ý¿â²úÆ·£¬¶øÇÒÕâ¸öÊýÁ¿»¹ÔÚÔö¼Ó£¬¾ßÓм«´óµÄÀ©Õ¹ÐÔ¡£¶øµÚÈý·½³§¼ÒºÜÔç¾ÍÔÚ¿ª·¢ ADODB Êý¾Ý¿â´æÈ¡×é¼þ£¨http://adodb.sourceforge.net/£©£¬ÏÖÔÚÈÔÈ»ÔÚ¼ÌÐø½øÕ¹ÖС£
PHP ×ÔÉíÖ§³ÖµÄÊý¾Ý¿â×é¼þ£¬Ä¿Ç°×îÁ÷ÐеÄÊÇ MySQL ×é¼þ¡£PHP4.0 ºÍ 5.0 °æ±¾¶Ô Oracle µÄÖ§³ÖʹÓÃÁ˲»Í¬µÄº¯Êý×飬5.0 ¼æÈÝ 4.0£¬µ«º¯ÊýÃûÒѾ¸ü»»ÁË¡£PHP4.0 ÓõÄÊÇ OCILogon()¡¢OCIParse()¡¢OCIExecute()¡¢OCIFetchInto()µÈº¯Êý¡£¶ø PHP5.0 ÓõÄÊÇ oci_connect()¡¢oci_parse¡¢oci_bind_by_name()¡¢oci_execute()¡¢oci_fetch_all()µÈµÈº¯Êý£¬ÄÜ¿´³öÀ´ÊÇÏò MySQL µÄº¯ÊýÃüÃû¿¿Â£¡£ÕâЩº¯ÊýÊÇÓà C ÓïÑÔ¶Ô PHP ½øÐÐÀ©Õ¹¿ª·¢µÄ£¬ÀíÂÛÉÏЧÂÊ×î¸ß£¬µ«Ò²ÐíÒòΪ×ÊÁÏȱ·¦µÈÔÒò£¬Ê¹ÓõÄÈËËƺõ²¢²»¼û¶à¡£ÆäÕë¶Ô Oracle ±íµÄ·ÖÒ³´úÂëµÈ£¬Ò²±È½Ï¸´ÔÓ¡£
¶ø ADODB ×é¼þºÍ Windows Ï ASP.NET ʹÓÃµÄ ADO ×é¼þ°ü×°¼¸ºõÊÇһģһÑùµÄ£¬×ö¹ý ASP/ASP.NET + ACCESS/MS-SQLServer ¿ª·¢µÄÈËÓ¦¸ÃËÆÔøÏàʶ£¬ºÜÈÝÒ×ÉÏÊÖ¡£ËùÒÔ£¬Óà PHP ×ö MS-SQLServer »ò oracle ¿ª·¢£¬ADODB Ó¦¸ÃÊÇ¿¼ÂÇÖ®ÁС£ADODB ¶Ô PHP µÄ 4.0 ºÍ 5.0 °æ±¾¾ùÖ§³Ö£¬¶ø PDO ½ö½öÖ§³Ö PHP µÄ 5.1 ÒÔÉÏ°æ±¾£¬ÕâÒ»µãÒ²Ó¦¸Ã¿¼ÂÇ£¬×öÏîÄ¿µÄÎÊÌâ²»´ó£¬×ö²úÆ·µÄ£¬¾ÍÒª¿¼ÂÇ°æ±¾µÄÊÊÓÃÐÔºÍÈí¼þµÄ²¿Êð»·¾³ÁË¡£
Ïà¹ØÎĵµ£º
ÀÏÁÎÔø¾ÔÚPHPERÔÓÖ¾ÉÏ·¢±í¹ýһƪÎÄÕ½Ð×öÓÃVIM×öPHP¿ª·¢»·¾³,ÔÚÀïÃæÏêϸ½éÉÜÁËÓÃVIM×öphp¿ª·¢ÐèÒª×öµÄ×¼±¸,ÕâƪÎÄÕ¾ͽáºÏһЩ×ÊÁϺÍÎÒ×Ô¼ºµÄһЩ¾ÑéÀ´½éÉÜÏÂÓÃVIM×öC/C++¿ª·¢ÐèÒª×öµÄÊÂÇé,Ïà¶ÔÀ´ËµÒª±È×öphp¿ª·¢·½±ãЩ¡£
Ç°ÌáÌõ¼þÊǵ±È»ÊÇÄãÒѾÏÂÔØÁËVIM,Èç¹ûûÓеĻ°ÇëÏȵ½¹Ù·½ÍøÕ¾ÏÂÔØ×îа汾,µØÖ·ÊÇ£ºhttp:/ ......
<?php
function remove_directory($dir) {
if ($handle = opendir("$dir")) {
while (false !== ($item = readdir($handle))) {
if ($item != "." && $item != "..") {
......
php°²×°³ÌÐòÔÀí£º
ÆäʵPHP³ÌÐòµÄ°²×°ÔÀíÎ޷ǾÍÊǽ«Êý¾Ý¿â½á¹¹ºÍÄÚÈݵ¼Èëµ½ÏàÓ¦µÄÊý¾Ý¿âÖУ¬´ÓÕâ¸ö¹ý³ÌÖÐÖØÐÂÅäÖÃÁ¬½ÓÊý¾Ý¿âµÄ²ÎÊýºÍÎļþ£¬ÎªÁ˱£Ö¤²»±»±ðÈ˶ñÒâʹÓð²×°Îļþ£¬µ±°²×°Íê³ÉºóÐèÒªÐ޸ݲװÎļþ¡£
²½Ö裺
¼ì²éĿ¼»òÎļþµÄȨÏÞ
Ð޸ĻòÌî¼ÓÅäÖÃÎļþ
¼ì²éÅäÖÃÎļþÕýÈ·ÐÔ
µ¼ÈëÊý¾Ý¿â
Ëø¶¨»òÉ ......
phpÎļþ
<?php
mysql_connect("localhost","","");
mysql_query("set names 'gb2312'");
mysql_select_db("shop");
$sqlstr="select * from goods";
require 'smarty/libs/Smarty.class.php';
$smarty = new Smarty;//ÉèÖø÷¸öĿ¼µÄ·¾¶£¬ÕâÀïÊÇ°²×°µÄÖصã
$smarty->template_dir ="smarty/templates/templa ......