News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

php include code

Started by Doug, February 13, 2006, 12:13:23 PM

Previous topic - Next topic

Doug

Can someone tell me where I am going wrong.  I am trying to pull up this page (html) which contains a script to show the moon phase.  Here is the code I am using:  <tr>
    <td bgcolor="#3E6488" valign="top">
    <p align="center"><b><span style="font-variant: small-caps">
    <font size="1" face="Verdana" color="#FFFFFF">Moon Phase</font></span></b></td>
  </tr>
  <tr>
    <td height="100" valign="top" bgcolor="#FFFFFF">
    <p align="center"><font face="Verdana" size="1">
    <?php
include ("http://jaxdoug.com/moonphase.html");
?> </td>
  </tr>


I am using this in my index.template.php by the way.

Thanks,

Doug
YAP Portal

sm2k

Check whether the php config on your server has URL fopen wrappers enabled.  If not, you won't be able to include a file using the file's URL.  If this file is in already in your web, then just include it using a standard path:

include('somepath/moonphase.html');

Advertisement: