Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

xslt set log function syntax tag tutorial 2013





Alert! Connect with 10,000 Chating Online. Join Now

Php xslt set log () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 4 >= 4.0.6)

xslt_set_log -- Set the log file to write log messages to

Syntax

void xslt_set_log ( resource xh [, mixed log] )

xh

A reference to the XSLT parser.

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.

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.

Note: Please note that file:// is needed in front of path if you use 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);
?>

Php xslt set log Function syntax tag

xslt set log php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php xslt set log syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online