Xwab
Форумыnavigate_nextПрограммирование на PHP

конвертировать их хмл в хтмл) срочно))
Сообщения
ecco

вот дана у меня страница


<?php
/**
* project:
* WB Engine (MU-version)
*
* version:
* 0.8
*
* authors:
* Artem Egorov aka zick
*
* last edit:
* 19/05/2009 19:55
*
* GNU General Public License, version 2:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

defined('IN_WBENGINE') or die('Hacking attempt');

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Content-type: ' . (stristr(UA, 'msie') ? 'text/html' : 'application/xhtml+xml') . '; charset=UTF-8');

$online = online_statistics();

$buffer = '<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<title>' . (isset($theme[0]) ? $theme[0] : '') . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="wbengine" />
<meta name="keywords" content="' . get_option('meta_keywords') . '" />
<meta name="description" content="' . get_option('meta_description') . '" />
<link rel="shortcut icon" href="' . HOME . 'wb-includes/themes/standart/images/favicon.ico" />
<link rel="stylesheet" href="' . HOME . 'wb-includes/themes/standart/css/main.css" type="text/css" />
</head>
<body>

[тело]

</body>
</html>';
?>

как ее в хтмл превратить?)

11 Фев 2012, 14:20
Pblcb

Запусти. И будет чудо

11 Фев 2012, 14:22
ecco

нее там в хмл

11 Фев 2012, 14:27
Pblcb

ecco, <!DOCTYPE html ... Ни о чем не говорит?

11 Фев 2012, 14:31
ecco

говорит, но он выдает хмл ошибки и дело скорее всего в строчке
$buffer = '<?xml version="1.0" encoding="utf-8" ?>

11 Фев 2012, 14:38
Pblcb

ecco, так убери её, раз считаешь что дело в ней

11 Фев 2012, 14:40
Ninja

Из xhtml?

11 Фев 2012, 14:40
ecco

из html. когда убираю, выдает ошибку

11 Фев 2012, 14:43
Ninja

Вместо <?xml version="1.0"
encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//
WAPFORUM//DTD XHTML Mobile 1.0//
EN" "http://
www.openmobilealliance.org/tech/ DTD/xhtml-mobile10.dtd">
<html xmlns="http://
www.w3.org/1999/xhtml"
xml:lang="ru">
Пропиши <!DOCTYPE html>
добавлено спустя 53 секунды:
Без пробелов

11 Фев 2012, 14:51
Башка

Там нет хмл. Автор, тебе в разметку вообще

11 Фев 2012, 19:20
Ответить на тему