Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tidy.getoptdoc(3) [php man page]

TIDY.GETOPTDOC(3)							 1							 TIDY.GETOPTDOC(3)

tidy::getOptDoc - Returns the documentation for the given option name

       Object oriented style

SYNOPSIS
string tidy::getOptDoc (string $optname) DESCRIPTION
Procedural style string tidy_get_opt_doc (tidy $object, string $optname) tidy_get_opt_doc(3) returns the documentation for the given option name. Note You need at least libtidy from 25 April, 2005 for this function be available. PARAMETERS
o $object - The Tidy object. o $optname - The option name RETURN VALUES
Returns a string if the option exists and has documentation available, or FALSE otherwise. EXAMPLES
Example #1 Print all options along with their documentation and default value <?php $tidy = new tidy; $config = $tidy->getConfig(); ksort($config); foreach ($config as $opt => $val) { if (!$doc = $tidy->getOptDoc($opt)) $doc = 'no documentation available!'; $val = ($tidy->getOpt($opt) === true) ? 'true' : $val; $val = ($tidy->getOpt($opt) === false) ? 'false' : $val; echo "<p><b>$opt</b> (default: '$val')<br />". "$doc</p><hr /> "; } ?> SEE ALSO
tidy.getconfig(3), tidy.getopt(3). PHP Documentation Group TIDY.GETOPTDOC(3)

Check Out this Related Man Page

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)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Pattern substitute for "\"

Hi I want to convert string text="/opt/string/text" to "\/opt\/string\/text" Any ideas how i can do it inside a shell script I tried sed/awk but i am getting syntax error. this is code text =`echo $text | sed 's/\//\\\//'` HELP Thanks (3 Replies)
Discussion started by: ss_hpov
3 Replies

2. UNIX for Dummies Questions & Answers

passing variable to function

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)
Discussion started by: Knotty
4 Replies

3. Shell Programming and Scripting

Need help in While Condition

Hi All I am working on a script , need a help from you guys This is below script which i have written x=`who am i` opt=`echo ${x} | cut -f1 -d' '` df -d > deljil.txt if ;then while read line do sed /$line/d deljil.txt > deljil99.txt done <unix.txt while read cjob_name do... (5 Replies)
Discussion started by: raghav1982
5 Replies

4. Shell Programming and Scripting

Need help in Case Command

Hi All I am trying to replace some character using Sed , but i also need to use case commands like this : x=`who am i` opt=`echo ${x} | cut -f1 -d' '` case $opt in unix) 'UNX' My script asks the user to enter the source server and it gets the results it has to reaplace the above... (5 Replies)
Discussion started by: raghav1982
5 Replies

5. Shell Programming and Scripting

cp: cannot stat `/opt/IBM/cofig.sh': No such file or directory

Hi all, I'm trying to write a single line command to do this 1. ssh user@hostA 2. Check whether the dir /opt/IBM/ exists 3. copy -a /opt/IBM/config.sh /opt/IBM/config.sh.old This is the command ssh -v user@hostA "test -d /opt/IBM" && cp -a /opt/IBM/config.sh /opt/IBM/config.sh.old ||... (3 Replies)
Discussion started by: chanti
3 Replies

6. UNIX for Dummies Questions & Answers

Command to list large files

Looking for a line to show all of the large files on a unix server (over 300mb)... Having problems finding anything that works... TIA! (13 Replies)
Discussion started by: search66
13 Replies

7. UNIX for Dummies Questions & Answers

Displaying Filesystem During df

I'm unsure about the topic title, but this is what I want to do. I have a directory, named /opt/extra and and I want it to be displayed when I issue df command. Just by using df only, not df /opt/extra. OS: Solaris 10 Current df output root@jebat10 # df -k Filesystem kbytes ... (3 Replies)
Discussion started by: Olli.Lang
3 Replies

8. HP-UX

/opt will not unmount to extendfs

The /opt file system needs to be extended. I know the basic commands, but /opt will not unmount. fuser shows nothing and I see no jobs running from /opt. If I need to take it down to single user mode to do this, then what is the best command? Any help is appreciated. Is there a way to stop all... (3 Replies)
Discussion started by: joettacm
3 Replies

9. UNIX for Advanced & Expert Users

/opt file system full !!!

Can anyone help me in cleaning /opt filesystem.. i have checked all the options and i have cleared all the logs and the total size of the files in /opt is shown as 1.8GB were as the size of /opt is 4.8GB but wen i run the command # df -h /opt it gives capacity 99% Please help... (17 Replies)
Discussion started by: kjamsheed
17 Replies

10. Shell Programming and Scripting

awk modify multiple columns with pipes

Hello, I have a CSV-like dataset where some of the columns contain HTML snippets which I need to convert to XHTML. For any given snippet, I have a functioning config for the text processor 'tidy' such that tidy -config tidy.cfg example.html does the job I need done. I would like to process... (10 Replies)
Discussion started by: bstamper
10 Replies

11. Shell Programming and Scripting

getopt invalid option selection

What is the significance of the *) and ?) in the below code. while getopts a:b:c:he opt do case $opt in a) _name="$OPTARG";; b) _project="$OPTARG";; c) line="$OPTARG";; e) _cmd="XX";; h) Projects=1;; *) echo "$OPTARG is an invalid option"; my_exit 1;; ?)... (3 Replies)
Discussion started by: posix
3 Replies

12. Shell Programming and Scripting

Need to take one part from a string

I have a string something like "/opt/src/default.cfg" OR /opt/src/common/one This whole string stored in an array. The problem is this string is not constant and it will keep on changing as lot of strings are stored in the array and it will be look like :- case 1 /opt/src/default.cfg ... (8 Replies)
Discussion started by: Renjesh
8 Replies

13. Shell Programming and Scripting

trying to view contents of an existing script

root#pwd /opt/tools root# cat check_traffic /opt/tools/utils/commands $1 /opt/tools/utils/DIR/check_traffic root# cat /opt/tools/utils/DIR/check_traffic gew "check_traffic -v" Hi above script works for checking traffic for an ip address im trying to view the check_traffic script by... (5 Replies)
Discussion started by: slashbash
5 Replies

14. Shell Programming and Scripting

How to sort the numbers with symbol like '%' and alphabets '5M' and '52G'?

Hi all , I have below input 124M 56M 63M 48% /opt/isv/microsoft 1.1G 133M 922M 13% /opt/isv/mqm 5.0G 2.5G 2.3G 52% /opt/isv/oracle 30G 0 30G 0% /opt/isv/db my required output... (3 Replies)
Discussion started by: vinothsekark
3 Replies

15. AIX

Need help on processes in particular filesystem

Hi, In my aix server i'm having file system called /dev/hd2 which is mounted on /usr.now what i need is the Processes which comes under this filesystem.Any command to find this TIA (9 Replies)
Discussion started by: sumanthupar
9 Replies