cgi/perl - html problem...

Mirlyn said:
Ok, so G.php is sitting in your root folder with footer.txt. G.php has
PHP:
include('footer.txt');
in it. footer.txt has "this is a test" in it.

Still nothing?

Yeah "straight" PHP works.
I'll just use it for now, and come back to perl/cgi later.

the test code For the straight php:

PHP:
<html>
  <body>
    <div align=center>
    <h1>PHP info on Scott's Server</h1>
    </div>

<?PHP include('./footer.html'); ?>

<? phpinfo()?>

  </body>
</html>

the page...:
http://66.168.192.248/index.php

I knew I should stuck with PHP :D
The last time I tried Perl I just about pulled my hair out.

I'll give Perl another shot after I get settled back down. :lol2:
 
well since I'm going to change the whole site over to php,
I guess I need redirect pages with the same name for the
people that have linked directly to those pages huh?
 
Ah-HAH!
mort over at IH figured it out for me.
2 things I was missing.
I chmoded the cgi-bin to 755, but not the footer.pl file it's-self.
Then Instead of .html extention, I had to use .shtml. :nerd:

http://catohosting.com/G.shtml

woohoo :beavbang:

I may still redo everything with php though, and use it ALL. :eek10:

Thank all for the input(s), and suggestions.
Although some of the suggestions here didn't directly fix the main
problem(s), they did give me some good ideas to use in other places.;)
 
Back
Top