Forums

PHP

This topic is locked

SSI problem on .php

Posted 26 Nov 2003 20:04:22
1
has voted
26 Nov 2003 20:04:22 melinda Frandsen posted:
<font face='Verdana'></font id='Verdana'>
Hi I'm new at this and need a little help. I'm trying to set up a SSI on my index.php. I've got the include labeled as .shtml.. and as i said the main page is .php. this is the error i'm getting in my browser:

"The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

Whitespace is not allowed at this location. Error processing resource 'www.empirepolo.net/test/'. Line 10, Position 3

&lt;? virtual("top_nav.shtml"; ?&gt;
--^ "
any ideas?
thanks.. M

Replies

Replied 27 Nov 2003 14:21:18
27 Nov 2003 14:21:18 Matt Machell replied:
If you're using php, try using:

<pre id=code><font face=courier size=2 id=code>&lt;?php require_once("top_nav.shtml"; ?&gt; </font id=code></pre id=code>

Should work fine for menu includes.

-Matt
Replied 28 Nov 2003 23:14:39
28 Nov 2003 23:14:39 melinda Frandsen replied:
<font face='Verdana'></font id='Verdana'>
Thanks Matt. I must be really doing something wrong because it's still not showing up. Maybe I've got the wrong idea about .php's. I thought .php was just a file extension. Is there more to it than that?

Melinda
Replied 29 Nov 2003 09:40:50
29 Nov 2003 09:40:50 melinda Frandsen replied:
<font face='Verdana'></font id='Verdana'>
OK, so I now know what the problem was if anyone is interested. Apparently that hosting service doesn't support .php, it has to be .php4. Thanks for your help Matt!
Melinda

Reply to this topic