![]() |
Best way to use SSI and PHP at the same time
i have a network of 31 sites. all of them use SSI on each page. I just got a script done to update the text easily but its a php script. what is my best solution? for ssi they have to be .shtml pages.
|
impossible, call your SSI from php system execs and then print out the content
|
in .htaccess
AddType application/x-httpd-php .php .shtml should work |
maybe not.. i dont know .. lol :)
|
Quote:
|
Why? It's absolutely possible. For me, the following SSI directive works perfectly:
<!--#include virtual="_header.phtml" --> where _header.phtml is a php3 script. I do it all the time. |
Php scripts do
<? virtual("/cgi-bin/script.cgi"); ?> I prefer to run more php and do it that way when I need to run a cgi on the same page, but not all scripts work 100% |
Quote:
|
Quote:
Code:
RemoveHandler .html .htmCall your script like this: Code:
<?php virtual ("/cgi-bin/script.cgi"); ?> |
| All times are GMT -7. The time now is 03:09 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123