Warning: require_once(include/header.php) [function.require-once]: failed to open stream: No such file or directory in /home/varatchanu/domains/worksoverjob.com/public_html/index.php on line 11
Fatal error: require_once() [function.require]: Failed opening required 'include/header.php' (include_path='.:/usr/local/lib/php') in /home/varatchanu/domains/worksoverjob.com/public_html/index.php on line 11
พอผมเปิดไฟล์ index.php
บรรทัดที่ 11
require_once("include/header.php");
แล้วพอเปิดไฟล์ header.php
เป็นแบบนี้ครับ
Code (PHP)
<?
function header_html($title)
{
//แสดงส่วนของ header ใน html
?>
<html>
<head>
<title><?=$title?></title>
<style>
body { margin: 0px 0px; padding: 0px 0px}
a.cate {text-decoration:none; color: "#000066";}
a.cate:hover {color:"#CC0099";}
A:link {text-decoration: none; color: #330099 }
A:visited {text-decoration: none; color: #330099 }
A:hover {text-decoration: none; color: #330099}
A:active {text-decoration: none; color: #330099 }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874"></head>
<body>
<table border="0" bordercolorlight="#000000" cellspacing="0" style="border-collapse:collapse" bordercolor="#111111" cellpadding="0" width="780">
<tr>
<td align="center"width="100%" colspan="2"><TABLE cellSpacing=0 cellPadding=0 width=603 border=0>
<TBODY>
<TR>
<TD align=right><IMG height=116 alt="PAT:INTRANET"
src="image/header_left2.gif"
width=368></TD>
<TD><IMG height=116 alt=""
src="image/header_right2.gif"
width=235></TD>
</TR>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width=368 border=0>
<TBODY>
<TR>
<TD><A href="http://mail.port.co.th"><IMG alt=E-MAIL
src="image/research.gif"
border=0></A></TD>
<TD><A href="webboard/default.asp"><IMG alt=WEBBOARD
src="image/events.gif"
border=0></A></TD>
<TD><A href="http://www.port.co.th"><IMG
alt="WEBSITE PORT"
src="image/latest.gif"
border=0></A></TD>
<TD><a href="http://10.0.2.1/dg/homepage/html/InforDiv/InforDiv.htm"><img
alt="สารสัมพันธ์"
src="image/about.gif"
border=0></a></TD>
</TR>
</TBODY>
</TABLE></TD>
<TD vAlign=top width=242 height=30><IMG height=30 alt=""
src="image/header_edge2.gif"
width=235></TD>
</TR>
<TR>
<TD align=left colSpan=2> <DIV class=strap><STRONG> Welcome
to Intranet </STRONG> </DIV></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr align="right">
<td height="20" align="right" background="http://www1.port.co.th/homepage/image/bgmenu.gif">
<a class="cate" href="index.php"><font face="MS Sans Serif, Microsoft Sans Serif" size="2"><img src="image/shome_l.gif" width="17" height="16" border="0">
หน้าแรก <font color="ffffff">|</font></font></a> <font face="MS Sans Serif, Microsoft Sans Serif" size="2"><a class="cate" href="search.php"><img src="image/icon_mini_search.gif" width="12" height="13" border="0"> ค้นหา </a><font color="ffffff">|</font></font>
<font face="MS Sans Serif, Microsoft Sans Serif" size="2"><a class="cate" href="showlist_article.php?idtypearticle="> <img src="image/avantgo.gif" width="13" height="17" border="0">
บทความ </a><font color="#ffffff">| </font></font> <font face="MS Sans Serif, Microsoft Sans Serif" size="2"><a class="cate" href="webboard/webboard.php" target="_blank"><img src="image/icon1.gif" width="15" height="15" border="0"> เว็บบอร์ด </a><font color="ffffff">|</font></font>
<font face="MS Sans Serif, Microsoft Sans Serif" size="2"><a class="cate" href="sendmail_contact.php"><img src="image/friend.gif" width="15" height="11" border="0"> ติดต่อทีมงาน </a><font color="ffffff">| </font></font>
<font face="MS Sans Serif, Microsoft Sans Serif" size="2"><? //<a class="cate" href="login_formhost.php">ผู้ให้บริการ</a><font color="ffffff">|</font>?></font> <font face="MS Sans Serif, Microsoft Sans Serif" size="2"><font color="ffffff"><img src="image/COhd15.gif" width="16" height="16"></font></font>
<font face="MS Sans Serif, Microsoft Sans Serif" size="2"><a class="cate" href="showlist_host.php">ผู้ให้บริการโฮสติ้ง</a><font color="ffffff">|</font></font> <img src="image/button_hostPreview.gif" width="14" height="14">
<font face="MS Sans Serif, Microsoft Sans Serif" size="2"><a class="cate" href="login_admin.php" >ผู้ดูแลระบบ </a></font>
</td>
</tr>
</table>
<?}?>