PDA

View Full Version : problems trying to use "include" statement


heynurse
10-25-2005, 01:41 AM
I'm trying to create a module that would include a PHP or a HTML file.

But I'm not having any luck. I can't get the file to show up.

Here are the include statements I tried:
(.php, .php3, .phtml, etc.):
<? include("last10.php"); ?>
To include it on a server-parsed page (.shtml, .shtm, .ssi, etc.):
<!--#include file="last10.php"-->

Any suggestions?

Brian
10-25-2005, 11:26 AM
Where is your 'last10.php' file located on your server?

Our Sponsors
 

heynurse
10-25-2005, 11:57 AM
in my web root directory, I tried moving a copy in my /forums directory as well, still didn't work. Any ideas?

Brian
10-25-2005, 02:12 PM
Can you post the contents of that file?