#soap擴充
編譯soap.so擴充~
SOAP擴充
進入安裝原php的來源碼目錄,
cdext
cd soap
cd extcd soapcd ext
cd soap
/var/php/bin/php-config (一定要有php-config這個檔案的路徑,不然會報錯!)make就會在PHPDIR/ext/soap/modules/下產生soap.so的檔案php -i | grep ini 找到php.ini filevi 那個php.ini找到extension_dir = "/usr/lib/php/extensions"將編譯的soap.so放到裡面加到.iniextension=soap.so[soap]; Enables or disables WSDL caching feature.soap.wsdl_cache_enabled=1ache.soap.wsdl_cache_enabled=1ache.soap. wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
.
重啟web服務
service nginx restart
service php-fpm stop
service php-fpm start
#因為可惜載入到先
其他常用擴充功能extension_loaded('soap')//是否載入了soap擴充dl('soap.so');//載入soap擴充ini_set('soap.wsdl_cache_dir',"/tmpini_set('soap.wsdl_cache_dir',"/tmp" );//設定擴充參數
array get_extension_funcs ( string $module_name )
array get_loaded_extensions ([ bool $zend_extensions= false ] )