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) ......
#apt-get install apache2
//°²×°apahce2
#apt-get install php5
//°²×°php5
#apt-get install mysql-server
//°²×°mysql·þÎñ¶Ë
#apt-get install mysql-myclient
//°²×°mysqlµÄ¿Í»§¶Ë
#apt-get install php-mysql
//°²×°php-mysqlµÄÁ¬½á
apache+php+mysql »·¾³ÒѾ´î½¨ºÃÁË
½«ÒÔϵķþÎñÖØÆôÒ»ÏÂ
#/et ......
Ê×ÏÈ°²×°Íêphp
ºó×îºÃ±£Áôµ±Ê±°²×°µÄÎļþ£¬±ÈÈçÎҵķ¾¶/export1/soft
#cd php-5.2.8/ext/soap
#/usr/local/php/bin/phpize
#./configure --with-php-config=/usr/local/php/bin/php-config
--enable-soap
#make
#make install
±àÒëºóµÄsoap.so
Îļþ± ......
<?php
/*
ͼƬ´¦Àíº¯Êý¹¦ÄÜ£ºËõ·Å¡¢¼ôÇС¢Ïà¿ò¡¢Ë®Ó¡¡¢Èñ»¯¡¢Ðýת¡¢·×ª¡¢Í¸Ã÷¶È¡¢·´É«
´¦Àí²¢±£´æÀúÊ·¼Ç¼µÄ˼·£ºµ±ÓÐͼƬÓиĶ¯Ê±×Ô¶¯Éú³ÉÒ»ÕÅÐÂͼƬ£¬ÃüÃû·½Ê½¿ÉÒÔ¿¼ÂÇÔÚÔͼƬµÄ»ù´¡ÉϼÓÉϲ½Ö裬ÀýÈ磺ͼƬÃû³Æ+__µÚ¼¸²½
*/
class picture{
var $PICTURE_URL;//Òª´¦ÀíµÄͼƬ
var $DEST_URL="temp__01.jpg" ......