Standalone random block showing code

rudolphp

Joined: 2002-07-26
Posts: 15
Posted: Sun, 2005-07-17 00:44

I have the random block entered as an SSI as follows:

<!--#include file="gallery/block-random.php" -->

and instead of displaying the block it diplays the php code like it is calling a text file.

It is an IIS 5 server

Anyone have any thoughts?

www.rudolphfamily.net/index.stm

TIA

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sun, 2005-07-17 00:47
rudolphp wrote:
and instead of displaying the block it diplays the php code like it is calling a text file.

...that's exactly what it's doing. You're including it, not executing it.

Please read the instructional post at the top of this forum. You must include the random block by using an http include, or it won't function correctly.

 
rudolphp

Joined: 2002-07-26
Posts: 15
Posted: Sun, 2005-07-17 00:58

OK. I have added the line,

include('http://www.rudolphfamily.net/gallery/block-random.php');

and the results are the same

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sun, 2005-07-17 01:04

Well.. your page isn't using PHP, obviously. I'm not sure what you're using.

You'll have to figure out how your software performs includes; I don't even know what 'stm' files are.

 
rudolphp

Joined: 2002-07-26
Posts: 15
Posted: Sun, 2005-07-17 01:30

it is normal html. the stm extension of IIS's way of recognizing an SSI which is what <!--#include file="gallery/block-random.php" --> is supposedly.

Thanks for responding and trying