Click to See Complete Forum and Search --> : footer help!!!!!!


Jupac
08-22-2003, 07:21 PM
Umm i use this perl script too have a footer but it keeps
[an error occurred while processing this directive]
at here (http://earth.prohosting.com/jt490250/test.shtml)

add the code is

#!/usr/local/bin/perl
$footer_file = "footer.txt";

print "Content-type: text/html/javascript\n\n";
open(FILE,"$footer_file");
while(<FILE>) {
print $_;
}

Plz help or if pyro comes and anwerwes he will make something up in php
LOL

pyro
08-22-2003, 08:33 PM
Originally posted by lakers01
...if pyro comes and anwerwes he will make something up in phpOf course... :D

<?PHP
include "footer.txt";
?>

or, holding more to the style of your Perl script:

<?PHP
$file = file("array.txt");
foreach ($file as $contents) {
echo $contents;
}
?>

Jupac
08-22-2003, 08:43 PM
Thanks:"):');) ;) ;)

pyro
08-22-2003, 09:16 PM
lol... No problem... :D

Jeff Mott
08-22-2003, 09:32 PM
In case you were curious...

print "Content-type: text/html/javascript\n\n";

should be

print "Content-Type: text/html\n\n";

And since it appears you were using SSI to include the output of the Perl script, you may find it easier to just include the file directly with SSI.

<!--#include virtual="/path/footer.txt" -->

Jupac
08-22-2003, 09:46 PM
Thanx Jeff i mut in javascript cause i was playing basketball under the table wile i was makeing my site!!