Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssi in php

Status
Not open for further replies.

kryva

Technical User
Dec 12, 2001
2
US
I run a webserver using Xitami. When using SSI, your pages have to have the .shtml extension, but I also run a php script in the same page, and it doesn't run if the extension is not .php. How can I run SSI with Php on the page? I'm trying to include a column of my page in an external file, so for all the subpages, I can refer to this file and I won't have to update every single page every time I want to change something in that column. Is there a command in Php that lets you do this, or is there a way to make Xitami parse the SSI in a document with a .php extension? Thank you for your help.
 
The readfile() function works pretty much as SSI, it reads and prints the page exactly as it is. This should work:
<?
readfile(&quot;header.html&quot;);
?> //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top