PDA

View Full Version : SSI for PHP?


Cold Steel
Fri 5th May '00, 5:10pm
It was possible to include a CGI script in a page with SSI.

Is there an equivalent for PHP?

Martin
Fri 5th May '00, 5:36pm
we came up with the passthru(string,int) function as a possible means of pulling a CGI srpipt into a PHP page, but I don't know if anyone has tried it yet.

I won't have my board set up till late afternoon, but if you beat me to this, let me know?

John
Fri 5th May '00, 9:43pm
If you are runnning PHP as an Apache module, you can use the virtual function too.

John

shri
Sun 7th May '00, 4:35pm
John,

Can the virtual function be used only in the parsed headers and footers or on any other template also?

Shri

John
Mon 8th May '00, 1:35am
It can just be used in parsed headers and footers. However, if you create a variable in the headers, this can then be used in almost any template. For example, if you have in the header:

$mytext="Hello World";

You can use the $mytext variable in most of the templates.

John