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

search for in the

tidy_repair_string> <tidy_parse_string
Last updated: Fri, 11 Apr 2008

view this page in

tidy_repair_file

(PHP 5, PECL tidy:0.7-1.2)

tidy_repair_file — Répare un fichier et le renvoie en tant que chaîne

Description

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

tidy_repair_file() répare le fichier fourni et le renvoie sous la forme d'une chaîne.

Exemple #1 Exemple avec tidy_repair_file()

<?php
$file 
'file.html';

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

file_put_contents($file$repaired);
?>

Note: Les paramètres optionnels config et encoding ont été ajoutés en Tidy 2.0.

Voir aussi tidy_parse_file(), tidy_parse_string() et 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: Fri, 11 Apr 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites