PDA

View Full Version : Shtml(SSI) and php compatible?


gengar003
10-26-2003, 10:49 PM
Is there a way to make a webpage that will allow you to use BOTH SSI and php?


E.g. -


<body>
<center>
<#--include virtual="blah.html">
</center>
<b>
<?
//PHP code.
?>
</b>
</body>


and if so, what would the file extension be? .phpshtml? ^_^;;


If not, is there a way to clear text files with php?

Sephiroth 9999
10-28-2003, 03:37 PM
I'm totally unexperienced in SSI, and have never laid hands on it. But I'll give a few answers according to my HTML/PHP experience. ^^

Does SSI have a "<script language=" thingymabob? Or some way to access the language from an outside source? If so, I'd try that.

I'd leave the extension as .php, at least I think. =P Some uber person will come and prove me totally wrong in a minute though anyway, meh. I don't think the .php extension is important in PHP. As long as the server understands what it must produce when interpreting the code, I think the .php is there to simply make it more user-friendly.

(I think that is. =P)

assassingod
10-28-2003, 03:51 PM
Steven;

Uhh, of course the php extension is important :ermm:;)

Also, SSI doesn't require a extension change so it's possible to use it (IIRC)

But why would you want to?

gengar003
10-29-2003, 12:33 AM
SSI doesn't require an extension change? I could've sworn it did....

Edit, though: I've decided on an alternate solution, thank you two for your input.

Mods may delete/close/nuke this thread if they so desire.

^_^

Sephiroth 9999
10-31-2003, 05:52 AM
Steven;

Uhh, of course the php extension is important :ermm:;)

Also, SSI doesn't require a extension change so it's possible to use it (IIRC)

But why would you want to?

Yeah I figured that out two days ago... :nervous: And see? I was right. Some uber person did prove me wrong. ;)