SSI tags inside PHP
If an SSI include is within a webpage, does it neccesarily have to end in .shtml in order for you to see it? Can it end in PHP instead?
If an SSI include is within a webpage, does it neccesarily have to end in .shtml in order for you to see it? Can it end in PHP instead?
Mark Hensler posted this at 16:59 — 19th November 2001.
He has: 4,048 posts
Joined: Aug 2000
I believe it depends on how you have your Apache handlers setup. I *think* that you set the .php extension to the SSI handler (I forget what it is), then set it to the PHP handler. And I *think* that it will parse for SSI, then send it to the PHP interpreter.
But really, you don't need to use SSI in PHP. PHP has it's own include functions: include(), require(). And to exec CGI: exec(), passthru()
Mark Hensler
If there is no answer on Google, then there is no question.
ValleyPages posted this at 14:17 — 20th November 2001.
He has: 46 posts
Joined: Nov 2001
Thanks for the help, Mark. I'll look into this further.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.