php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容

源代码在线查看: function.xslt-set-log.html

软件大小: 3633 K
上传用户: fengkuangyidao
关键词: php PHP 文档 实际应用
下载地址: 免注册下载 普通下载 VIP

相关代码

												 				  Set the log file to write log messages to				  				 				 				 xslt_set_error_handler				 xslt_set_object				 XSLT Functions				 PHP Manual								 				  xslt_set_log				  (PHP 4 >= 4.0.6)xslt_set_log — Set the log file to write log messages to								 				 				 				  Description				  				   void xslt_set_log				    ( resource $xh				   [, mixed $log				  ] )								  				   This function allows you to set the file in which you want XSLT log				   messages to, XSLT log messages are different than error messages, in				   that log messages are not actually error messages but rather messages				   related to the state of the XSLT processor. They are useful for				   debugging XSLT, when something goes wrong.				  				  				   By default logging is disabled, in order to enable logging you must				   first call xslt_set_log() with a boolean parameter				   which enables logging, then if you want to set the log file to debug to,				   you must then pass it a string containing the filename.				  				 												 				  Parameters				  				   								    								     xh												     								      				       The XSLT processor link identifier, created with				       xslt_create().				      				     								    								    								     log												     								      				       This parameter is either a boolean value which toggles logging on and				       off, or a string containing the logfile in which log errors too.				      				     								    								   								  				 												 				  Return Values				  				   No value is returned.				  				 												 				  Notes				  Note: Please note that				file:// is needed in front of the path when using Windows.								 												 				  Examples				  				   				    Example #1 Using the XSLT Logging features				    								<?php$xh = xslt_create();xslt_set_log($xh, true);xslt_set_log($xh, getcwd() . '/myfile.log');$result = xslt_process($xh, 'dog.xml', 'pets.xsl');echo $result;xslt_free($xh);?>												    								   				  				 																 xslt_set_error_handler				 xslt_set_object				 XSLT Functions				 PHP Manual											

相关资源