previous導入 (Previous) (Next) Services_Weathernext

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

例 – Services_W3C_HTMLValidator の使用法

HTML Validator の結果の取得

以下の例で、W3C HTML Validator の検証結果を取得する方法を説明します。

URI による検証

このシンプルな例は、指定した URI を検証して そのページが妥当かどうかを返すものです。

<?php
require_once 'Services/W3C/HTMLValidator.php';

$v = new Services_W3C_HTMLValidator();
$u 'http://www.unl.edu/';
$r $v->validate($u);

if (
$r->isValid()) {
    echo 
$u.' は妥当です!';
} else {
    echo 
$u.' は妥当ではありません!';
}
?>
previous導入 (Previous) (Next) Services_Weathernext

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.