站内搜索
广告
这个可是好东西,以后大家可能会用上哦:HTML to XHTML Converter
作者:    来源:    点击:    日期:2007-6-20 0:35:55   

<?

if (!empty($type)) {
    if ($type == "path") {
        if (!empty($path)) {
            if (file_exists($path) && is_file($path)) {
                $file = file($path);
                if (substr($file[0],0,9) != "<!DOCTYPE") $doctype=0;
                    $file = join('', $file);
                } else {
                    die ("No such file.");
                }
            } else {
                die ("No file specified.");
            }
        } elseif ($type == "file") {
            if (!empty($file)) {

            } else {
                die ("No file specified.");
            }
    } else {
        die ("No file specified.");
    }

# specify html file, check for doctype
//$file = file("file.html");
//if (substr($file[0],0,9) != "<!DOCTYPE") $doctype=1;
//$file = join('', $file);

# make tags and properties lower case, close empty elements, quote all properties
首页 上一页 [1] [2] [3]  下一页 尾页 
这个可是好东西,以后大家可能会用上哦:HTML to XHTML Converter 评论