Click to See Complete Forum and Search --> : php & iis & ssi


kucher
06-25-2002, 03:22 PM
i try to use ssi include in html and try to include php-script, but iis includes pure php code into html file :( what should i do to avoid it?
i need the result of script but not its code :(

wurstbrot
06-25-2002, 05:44 PM
One possibility should be to let the SSI-files be parsed by PHP. You can achieve this with the .htaccess-file:

AddType application/x-httpd-php .ssi

SSI only includes the file. This is done before it is parsed by PHP. So, only the source is included (unparsed). You have to parse the file now to get the result of the script.

I hope this will help you

wurstbrot