I am having an include problem in GForum...
I use this same global in Links and I don't have a problem:
sub {
# Display a banner
my $ad;
$ad = `path/to/my/banner/file.cgi`;
$ad =~ s,Content-type:\stext/html,,;
return $ad;
}
But when I use this in GForum it returns the right html code it should, but encoded...
example >... ect.. instead of >...
In other words, it prints the html code instead of reading it.
I tried something like:
use URI::Escape;
$ad = &uri_unescape($ad);
But I get the same results. I have been so caught up in php's ease that I forgot some basic things in perl. I also don't understand why I need to do this in the first place when it works fine in links.
Any suggestings?
- Jonathan
I use this same global in Links and I don't have a problem:
Code:
sub {
# Display a banner
my $ad;
$ad = `path/to/my/banner/file.cgi`;
$ad =~ s,Content-type:\stext/html,,;
return $ad;
}
But when I use this in GForum it returns the right html code it should, but encoded...
example >... ect.. instead of >...
In other words, it prints the html code instead of reading it.
I tried something like:
use URI::Escape;
$ad = &uri_unescape($ad);
But I get the same results. I have been so caught up in php's ease that I forgot some basic things in perl. I also don't understand why I need to do this in the first place when it works fine in links.
Any suggestings?
- Jonathan