PDA

View Full Version : Include function and HTML pages


fantix
12-15-02, 09:49 PM
Is this a "good" line of PHP code? It worked on another server, but I don't know why the html file "fantix.footer.html" is not showing up now that i moved the site to powweb.

<td width="608" align="left"><% include("fantix.footer.html"); %>

All the other html that is "hard coded" into the PHP generated page shows.

mjp
12-16-02, 06:14 PM
For php you would want to use:

<? include ("fantix.footer.html"); ?>

I believe the "%" is used in .asp.

mjp

Camstone
12-16-02, 11:28 PM
He might need to update his .htaccess file if that didn't have something like the line...

AddType application/x-httpd-php htm

... in it.

fantix
12-16-02, 11:30 PM
I updated my htaccess file per PowWeb tech support and changed the % to ? and it worked. Thank you all!