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 ÒÔÉÏ°æ±¾£¬ÕâÒ»µãÒ²Ó¦¸Ã¿¼ÂÇ£¬×öÏîÄ¿µÄÎÊÌâ²»´ó£¬×ö²úÆ·µÄ£¬¾ÍÒª¿¼ÂÇ°æ±¾µÄÊÊÓÃÐÔºÍÈí¼þµÄ²¿Êð»·¾³ÁË¡£
Ïà¹ØÎĵµ£º
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾ ......
½øÐÐÎļþµÄ¶ÁºÍд£¬ÏÈ´ò¿ªÒ»¸öÎļþ£¬È»ºó¿ªÊ¼¶Á»òÕßдÎļþ£¬×îºóÔÙ¹ØϵÕâ¸öÎļþ×ÊÔ´¡£
È磬ÎļþµÄ¶Á²Ù×÷£º
<?php
$file = fopen('your file path','r');
while(!feof($file)){ //µ±Ã»ÓжÁÈ¡µ½Îļþ½á⣬¼ÌÐøÑ»·¶ÁÈ¡²Ù×÷
$line = fgets($file); //¶ÁÈ¡µ½Ò»ÐеÄÄÚÈÝ
echo $line.'<br/>';
}
fclose($file) ......
<?php
function remove_directory($dir) {
if ($handle = opendir("$dir")) {
while (false !== ($item = readdir($handle))) {
if ($item != "." && $item != "..") {
......
ÎÊÌ⣺
ÄãÏë´´½¨Ò»¸ö¶ÔÏ󣬲¢ÔÚÆäÖÐÌí¼ÓһЩÊôÐÔ£¬µ«ÊÇÄãÈ´²»Ïë°ÑËü×÷Ϊһ¸öÃ÷È·µÄÀàÕýʽµØ¶¨ÒåËü¡£ÕâÒ»µãÔÚһЩÇé¿öÏÂÊÇÏ൱ÓÐÓõģ¬ÀýÈçµ±ÄãÐèÒª¶¨ÒåÒ»¸ö·½·¨À´·µ»Ø´øÓÐijЩÊôÐÔ£¨²»È·¶¨µÄ£©µÄ¶ÔÏóʱ£¬¾ÍÈçͬ´Ómysql_fetch_object( ) »òÕß imap_header( )µÄʹÓÃÒ»Ñù¡£
һάÊý×é,ÎÒÏÖÔÚÌرðϲ»¶°ÑËüд³É¶ÔÏó,ÒòΪ¼üÅÌ´ ......
ÒýÓÃhttp://www.icnote.com/Mysql-php-connector/
ÓÉÓÚ¹«Ë¾µÄ·þÎñÆ÷¿ªÊ¼Ö»ÊÇÓÃÓÚjavaµÄÖ§³Ö£¬×°ÁËapache£¬mysql£¬php£¬µ«ÊÇphpµÄ°²×°Ã»ÓжÔmysql½øÐÐÖ§³Ö£¬½ñÌì¶ÔËû½øÐÐÁËÀ©Õ¹£¬¼Ç¼ÈçÏ¡£
Ê×ÏÈ£¬°²×°mysqlºÍphpµÄÁ¬½ÓÀ©Õ¹£¬ÐèÒªÒÔÏ°ü¡£¿ÉÒÔÔÚhttp://rpmfind.net/
ÕÒµ½£¬¸ù ......