mirror of
https://github.com/php/web-php.git
synced 2026-03-24 07:12:16 +01:00
18 lines
350 B
PHP
18 lines
350 B
PHP
<?php
|
|
// harcoded xsl and xml names
|
|
$xsl_name = "projects.xsl";
|
|
$xsl = implode("",file($xsl_name));
|
|
|
|
$xml_name = "../backend/projects.xml";
|
|
$xml = implode("", file($xml_name));
|
|
|
|
if (!xslt_process($xsl, $xml, &$result)) {
|
|
Header("Status: 500 Server Error");
|
|
echo xslt_error();
|
|
echo "ERROR ".$php_error_msg;
|
|
exit;
|
|
} else {
|
|
echo $result;
|
|
}
|
|
?>
|