If you use <script> tags rather than the <? ?> markup, it will make your
life a lot easier:
<script language="php">
/* <![CDATA[ */
if(!auth()){
header("Location: /Home/index.html");
exit;
}
...
/* ]]> */
</script>
I am serializing my xml input with an xsl , and want to get
an output like:
<?
if(!auth()){
header("Location: /Home/index.html");
exit;
}
function auth(){
$valid = false;
session_start();
if (!isset($_SESSION['valid'])) {
$valid = false;
} else {
$valid = $_SESSION['valid'];
}
return $valid;
}
?>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list