PDA

View Full Version : how to include the output of a php script as the header for webadverts ?



TheSpaceDude
January 8th, 2001, 03:21
Hello,

Just wandering if anyone knows a way to include the OUTPUT of a .php script as the header for webadverts?

Currently, webadverts just includes the text, and does not execute the script

the current header code is:



if ($header_file) {
open (HEADER,"<$header_file");
@header = <HEADER>;
close (HEADER);
foreach $line (@header) {
if ($line =~ /<!--#include\s+(virtual|file)\s*=\s*"*([^"\s]*)"*\s*-->/i) {
$SSIFile = $SSIRootDir.$2;
open (SSIFILE,"<$SSIFile");
while (<SSIFILE>) { print "$_"; }
close (SSIFILE);
}
else { print "$line"; }
}


how would I make it use the executed script's output instead?

Thanks in advance for your help ;)