Forum Moderators: coopster
here the code of main.html:
<td width="153" rowspan="3" valign="top"><p align="left"><?php include("/menu.html");?>
</td>
and the another.html(menu.html) :
<h2>this is external html</h2>
please help
PHP includes reference files from the server root rather than the document root, so using a path like
/menu.html will mean that the PHP parser won't be able to find the file. I prefer doing avoiding the use of an absolute file path, so I do this: <?php include[b]($_SERVER["DOCUMENT_ROOT"].[/b]"/menu.html");?>