Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 α¾²Ì¬ url ÖØд

ÕûÁË°ëÌì¿ÉËãÈÃÎÒÕû³öÀ´ÁË º¹°¡£¡
C:\xampp\apache\conf\http.conf ÅäÖÃ
<Directory />
    Options FollowSymLinks
    AllowOverride all
    Order deny,allow
#    Deny from all
</Directory>
н¨ÏîÄ¿myphp
ÐéÄâ»ú·¾¶ localhost ......

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

ѧϰĿµÄ£ºÑ§»á¶ÁÈ¡Êý¾Ý
¡¡¡¡ÏÈ¿´Á½¸öº¯Êý£º
¡¡¡¡1¡¢mysql_query
¡¡¡¡ËͳöÒ»¸ö query ×Ö·û´®¡£ Óï·¨: int mysql_query(string query, int [link_identifier]); ·µ»ØÖµ: ÕûÊý
¡¡¡¡±¾º¯ÊýËͳö query ×Ö·û´®¹© MySQL ×öÏà¹ØµÄ´¦Àí»òÕßÖ´ÐС£ÈôûÓÐÖ¸¶¨ link_identifier ²ÎÊý£¬Ôò³ÌÐò»á×Ô¶¯Ñ°ÕÒ×î½ü´ò¿ªµÄ ID¡£µ± query ²éÑ ......

Ê®Ììѧ»á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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ