I cannot get the following code to work.
<?php
if(date("Ymd")<"20070928")
{
echo "
<tr>
<td class='diary' width='12%'>Fri<br>28<br>September<br>2007</td>
<td class='diary' width='12%' >7.15 pm </td>
<td class='diary' width='25%' >Annual Dinner </td>
<td class='diary' width='25%' >" . include $_SERVER['DOCUMENT_ROOT'] . '/includes/marsh.inc.php' . "</td>
<td class='diary' width='24%'><a class='diary' href='mailto:judyzz@geraldc.co.uk?subject=Annual_Dinner_2007'>Judy</a> on 01234 567890 </td>
</tr>";
}
?>
It produces the following message : Warning: main(/home/fhlinux186/x/xoopytester.co.uk/user/htdocs/includes/marsh.inc.php</td> <td class='diary' width='24%'><a class='diary' href='mailto:judyzz@fitzgeraldc.co.uk?subject=Annual Dinner 2007'>Judy</a> on 01234 567890 </td> </tr> ) [function.main]: failed to open stream: No such file or directory in /home/fhlinux186/x/xoopytester.co.uk/user/htdocs/diary.php on line 94
Warning: main(/home/fhlinux186/x/xoopytester.co.uk/user/htdocs/includes/marsh.inc.php</td> <td class='diary' width='24%'><a class='diary' href='mailto:judith@geraldc.co.uk?subject=Annual Dinner 2007'>Judy</a> on 01234 567890 </td> </tr> ) [function.main]: failed to open stream: No such file or directory in /home/fhlinux186/x/xoopytester.co.uk/user/htdocs/diary.php on line 94
Warning: main() [function.include]: Failed opening '/home/fhlinux186/x/xoopytester.co.uk/user/htdocs/includes/marsh.inc.php</td> <td class='diary' width='24%'><a class='diary' href='mailto:judyzz@geraldc.co.uk?subject=Annual Dinner 2007'>Judy</a> on 01234 567890 </td> </tr> ' for inclusion (include_path='.:/usr/share/pear') in /home/fhlinux186/x/xoopytester.co.uk/user/htdocs/diary.php on line 94
The include file is present on the remote server and there are no case sesitivity issues. The content of marsh.inc.php is as follows :
<? php
{
echo "<a class='diary' href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=nr1+3qq&ie=UTF8&ll=52.623842,1.291645&spn=0.005901,0.014462&z=16&om=1'>Marsh Ltd</a>";
}
?>
I have also tried it as :
<a class='diary' href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=nr1+3qq&ie=UTF8&ll=52.623842,1.291645&spn=0.005901,0.014462&z=16&om=1'>Marsh Ltd</a>
and
"<a class='diary' href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=nr1+3qq&ie=UTF8&ll=52.623842,1.291645&spn=0.005901,0.014462&z=16&om=1'>Marsh Ltd</a>"
The server is on a hosted package.
Any help would be much appreciated.





Bookmarks