TIDY.ERRORBUFFER(3) 1 TIDY.ERRORBUFFER(3)tidy::$errorBuffer - Return warnings and errors which occurred parsing the specified document
Object oriented style (property):
SYNOPSIS
string$tidy->errorBuffer ()
DESCRIPTION
Procedural style:
string tidy_get_error_buffer (tidy $tidy)
Returns warnings and errors which occurred parsing the specified document.
PARAMETERS
o $tidy
- The Tidy object.
RETURN VALUES
Returns the error buffer as a string.
EXAMPLES
Example #1
tidy_get_error_buffer(3) example
<?php
$html = '<p>paragraph</p>';
$tidy = tidy_parse_string($html);
echo tidy_get_error_buffer($tidy);
/* or in OO: */
echo $tidy->errorBuffer;
?>
The above example will output:
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 1 - Warning: inserting missing 'title' element
SEE ALSO tidy_access_count(3), tidy_error_count(3), tidy_warning_count(3).
PHP Documentation Group TIDY.ERRORBUFFER(3)
Check Out this Related Man Page
TIDY.PARSEFILE(3) 1 TIDY.PARSEFILE(3)tidy::parseFile - Parse markup in file or URI
Object oriented style
SYNOPSIS
bool tidy::parseFile (string $filename, [mixed $config], [string $encoding], [bool $use_include_path = false])
DESCRIPTION
Procedural style
tidy tidy_parse_file (string $filename, [mixed $config], [string $encoding], [bool $use_include_path = false])
Parses the given file.
PARAMETERS
o $filename
- If the $filename parameter is given, this function will also read that file and initialize the object with the file, acting like
tidy_parse_file(3).
o $config
- The config $config can be passed either as an array or as a string. If a string is passed, it is interpreted as the name of the
configuration file, otherwise, it is interpreted as the options themselves. For an explanation about each option, see
http://tidy.sourceforge.net/docs/quickref.html.
o $encoding
- The $encoding parameter sets the encoding for input/output documents. The possible values for encoding are: ascii, latin0,
latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, utf16le, utf16be, big5, and shiftjis.
o $use_include_path
- Search for the file in the include_path.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
tidy.parseFile(3) example
<?php
$tidy = new tidy();
$tidy->parseFile('file.html');
$tidy->cleanRepair();
if(!empty($tidy->errorBuffer)) {
echo "The following errors or warnings occurred:
";
echo $tidy->errorBuffer;
}
?>
NOTES
Note
The optional parameters $config and $encoding were added in Tidy 2.0.
SEE ALSO tidy.parsestring(3), tidy.repairfile(3), tidy.repairstring(3).
PHP Documentation Group TIDY.PARSEFILE(3)
Hi I am very new to KSH programming
and need some help with finding a string in an error log
currently i am doing
cat FTP_LOG.lis | grep Warning
which gives me
Warning: Authentication failed. Remaining authentication methods: 'publickey,pas
I want to only pick up the test between the... (4 Replies)
Hi,
I am trying to sum up numbered columns and in order to tidy up the program I have wrote a function to do the adding of some numbers. I have a problem though with passing a variable to the function in the UNIX bash shell. The function only gives the first number in the variable list and does... (4 Replies)
I am trying to tidy our server and write cron to keep it tidy.
We took on a third party to do some work last year. They were given their own UID/pwd so that they would have limited access. Part of what they wrote created an archive file at the end of every day.
A year on and we don't want... (1 Reply)
I'm parsing a router configuration file and printing out some of the fields. Given the following output,
I'd like to add the filename to the first column. I'm definately a neophyte in scripting.
COUNTER=${#array1
}
while ; do
######## echo -n $JUNOS_FILE | ... (3 Replies)
Hi all :)
It sounds complex, for example
I want to find the whole html file (there are 5 entries of this string and I need to get all of them) for the string
"<td class="contentheading" width="100%">", get the next line from it only till the point that says "</td>", plus removing \t (tabs)
... (6 Replies)
Hi Im trying to tidy up the output of a who command when it writes to a log, everything I've tried doesnt seem to work though, any help would be massively appreciated. Im using the awk command to set the OFS as tab.
#!/bin/bash
who >> /export/home/tjmoore/logusers
awk -F 'BEGIN... (3 Replies)