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

phpÀ©Õ¹°²×°soapÄ£¿é





Ê×ÏÈ°²×°Íê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
Îļþ±£´æÔÚÁË/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613
Ŀ¼ÏÂ

ÐÞ¸Äphp.ini
Îļþ

¡¡¡¡ÊÖ¹¤Ð޸ģº²éÕÒ/usr/local/php/etc/php.ini
ÖеÄextension_dir = "./"

¡¡¡¡ÐÞ¸ÄΪextension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613"

¡¡¡¡²¢ÔÚ´ËÐкóÔö¼ÓÈçÏ£¬È»ºó±£´æ£º

¡¡¡¡extension = "soap.so"

ÖØÐÂÆô¶¯apache
£¬ok
ÎÒÃǾÍÒѾ­ÄÜ¿´µ½À©Õ¹µÄsoap
Ä£¿éÁË¡£

Èç¹û»¹ÒªÀ©Õ¹±ðµÄÄ£¿é¿ÉÒÔÒ»´ÎÀàÍÆ£¬ÕâÀﻹÓеãҪ˵Ã÷£¬Èç¹û×öÁËzend
£¬php.ini
ÎļþÊÇÔÚ/usr/local/php/etc
ϵģ¬µ«ÊÇÎÒÃÇÕâ±ßÖØбàÒëºó£¬Ëü»Ø·Åµ½/usr/local/php/lib
Ï¡£ËùÒÔÕâÀïҪעÒâһϡ£
 
 


Ïà¹ØÎĵµ£º

Ê®Ììѧ»áphpÖ®µÚÆßÌì

ѧϰĿµÄ£ºÑ§»áSESSIONµÄʹÓÃ
¡¡¡¡SESSIONµÄ×÷Óúܶ࣬×î¶àÓõľÍÊÇÕ¾µãÄÚÒ³Ãæ¼ä±äÁ¿´«µÝ¡£ÔÚÒ³Ã濪ʼÎÒÃÇÒªsession_start();¿ªÆôSESSION£»
¡¡¡¡
¡¡¡¡È»ºó¾Í¿ÉÒÔʹÓÃSESSION±äÁ¿ÁË£¬±ÈÈç˵Ҫ¸³Öµ¾ÍÊÇ£º$_SESSION['item']="item1";ÒªµÃµ½Öµ¾ÍÊÇ$item1=$_SESSION['item'];£¬ºÜ¼òµ¥°É¡£ÕâÀïÎÒÃÇ¿ÉÄÜ»áʹÓõ½Ò»Ð©º¯Êý£¬±ÈÈçË ......

Ê®Ììѧ»áphpÖ®µÚ°ËÌì

 Ñ§Ï°Ä¿µÄ£º×öÒ»¸ö·ÖÒ³ÏÔʾ
¡¡¡¡¹Ø¼ü¾ÍÊÇÓõ½ÁËSQLÓï¾äÖеÄlimitÀ´ÏÞ¶¨ÏÔʾµÄ¼Ç¼´Ó¼¸µ½¼¸¡£ÎÒÃÇÐèÒªÒ»¸ö¼Ç¼µ±Ç°Ò³µÄ±äÁ¿$page£¬»¹ÐèÒª×ܹ²µÄ¼Ç¼Êý$num
¡¡¡¡¶ÔÓÚ$pageÈç¹ûûÓÐÎÒÃǾÍÈÃËü=0£¬Èç¹ûÓÐ<0¾ÍÈÃËüÒ²=0£¬Èç¹û³¬¹ýÁË×ܵÄÒ³Êý¾ÍÈÃËû=×ܵÄÒ³Êý¡£
¡¡¡¡$execc="select count(*) from tablename ";
¡¡¡¡$re ......

Ê®Ììѧ»áphpÖ®µÚÊ®Ìì

 Ñ§Ï°Ä¿µÄ£ºÑ§»áÓÃPHPÉÏ´«ÎļþºÍ·¢Óʼþ
¡¡¡¡ÉÏ´«Îļþ±íµ¥±ØÐë¼ÓÉÏ enctype="multipart/form-data" ºÍ <input type="file" name="file">
¡¡¡¡
¡¡¡¡ÏÂÃ濴һϴúÂ룺
¡¡¡¡$f=&$HTTP_POST_FILES['file'];
¡¡¡¡$dest_dir='uploads';//É趨ÉÏ´«Ä¿Â¼
¡¡¡¡$dest=$dest_dir.'/'.date("ymd")."_".$f['name'];// ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ