Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

tidy_repair_file

(PHP 5)

tidy_repair_file --  Repair a file and return it as a string

Description

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

This function repairs the given file and returns it as a string.

Параметр config может быть передан как в виде строки, так и в виде массива. В случае передачи строки, параметр рассматривается как путь к конфигурационному файлу, в противном случае содержание массива рассматривается как собственно конфигурация. За подробной информацией о опциях обращайтесь к http://tidy.sourceforge.net/docs/quickref.html.

Возможные значения параметра encoding: ascii, latin1, raw, utf8, iso2022, mac, win1252, utf16le, utf16be, utf16, big5 и shiftjis.

Пример 1. tidy_repair_file() example

<?php
$file
= 'file.html';

$repaired = tidy_repair_file($file);
rename($file, $file . '.bak');

file_put_contents($file, $repaired);
?>

Замечание: Опциональные параметры config_options и enconding были добавлены в Tidy 2.0.

See also tidy_parse_file(), tidy_parse_string() and tidy_repair_string().



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

tidy_repair_string> <tidy_parse_string
Last updated: Sat, 27 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571