hi, I've been learning php for a few days now and I'm trying to integrate it into my website. I previously used SSI to show my navigation menu. Could someone tell me how to display it using php?
Thanks in advance
SSI and PHP
Moderator: General Moderators
iirc, ssi would be used like this:
In PHP, it would be:
Code: Select all
<!--#virtual include="path/to/page.inc" -->Code: Select all
<?php include "path/to/page.inc" ?>Code: Select all
<?php include "file.htm"; ?>ok thanks, that worked great. Now I also have a CGI script running that displays a random image. I used to call it up (again with SSI) with this
How can I call up the same script in php?
Code: Select all
<!--#exec cmd="script.cgi"-->Look at the passthru() function in PHP.