Php controls the iis 404 error page. This document describes how to use php to manage web site time when setting pages that cannot be found by 404.
Php controls the iis 404 error page. This document describes how to use php to manage web site time when setting pages that cannot be found by 404.
<?
# PHP site control program
#
# Prepared by Han Xiangzi
#
# Mailbox: hanxiangzi@gmail.com
#
# MSN: hanxiangzi@gmail.com
#
# QQ: 220670
#
# Contact us for discussion
?>
<Link href = "image/css.css" rel = "stylesheet" type = "text/css"/>
<Style type = "text/css">
<! --
Body {
Background-color: # D4D0C8;
}
-->
</Style>
<? Php
$ Site = New Com ("IIS: // Localhost/w3svc/". $ ServerID );
IF ($ Submit ){
$ Site-> HttpErrors = "404, *, Url,". $ httperr;
$ Site-> SetInfo ();
}
?>
<Table width = "100%" border = "0" cellspacing = "0" cellpadding = "3">
<Tr>
<Td> <a href = "3.php"> <strong> back to host list </strong> </a> </td>
</Tr>
</Table>
<Table width = "100%" border = "0" cellspacing = "0" cellpadding = "3">
<Tr>
<Td> <a href = "33.php? ServerID = <? Php echo $ ServerID;?> "> Back to host management </a> </td>
</Tr>
<Tr>
<Td> & nbsp; </td>
</Tr>
</Table>
<Form action = "? ServerID = <? Php echo $ ServerID;?> "Method =" POST ">
Set Error 404 <input type = input value = "" size = 80 name = "httperr"> <input type = "Submit" name = "Submit" value = "Submit">
<Br> Format:/path/file .htm, for example:/404.htm
</Form>