adding a conditional to use function http_response_code(), since it is only

available for php 5.4.x
This commit is contained in:
Erik Amaru Ortiz
2014-03-07 09:54:31 -04:00
parent ce7f9ef081
commit f26ab19a61

View File

@@ -1,4 +1,6 @@
<?php http_response_code(404); die; ?>
<?php if (function_exists("http_response_code")) {
http_response_code(404);
}?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8" />