Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: tidy_parse_file - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

tidy_parse_string" width="11" height="7"/> <tidy_node->prev
Last updated: Mon, 05 Feb 2007

view this page in

tidy_parse_file

(PHP 5)

tidy_parse_file — ファイルまたは URI にあるマークアップをパースする

説明

手続き言語型スタイル:

tidy tidy_parse_file ( string filename [, mixed config [, string encoding [, bool use_include_path]]] )

オブジェクト指向言語型スタイル:

bool tidy->parseFile ( string filename [, mixed config [, string encoding [, bool use_include_path]]] )

この関数は与えられたファイルをパースします。

configパラメータは、配列または 文字列として指定することができます。文字列として指定した場合には設定ファイルの名前として解釈され、 そうでない場合はオプション自体として解釈されます。各オプションに関する説明については、 » http://tidy.sourceforge.net/docs/quickref.html を参照してください。

encoding パラメータは、文書を入力/出力する際のエンコーディングを 設定します。encoding には次の値を使用可能です。 ascii, latin1, raw, utf8, iso2022, mac, win1252, utf16le, utf16be, utf16, big5, shiftjis

例 2372. tidy_parse_file() の例

<?php
$tidy
= tidy_parse_file('file.html');

$tidy->cleanRepair();

if(!empty(
$tidy->errorBuffer)) {
   echo
"The following errors or warnings occured:\n";
   echo
$tidy->errorBuffer;
}
?>

注意: オプションのパラメータ config_optionsenconding は Tidy 2.0 で追加されました。

tidy_parse_string(), tidy_repair_file(), tidy_repair_string() も参照ください。



add a note add a note User Contributed Notes
tidy_parse_file
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites