|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
CGI AND ALL SCRIPT
Aight i am trying to execute a simple header and footer. the readme on footer.pl says put this <!--#exec cgi="footer.cgi"--> and then i open the html doc that i put this in and nothing happens. If you are available to look at it i will give u a ftp: my e-mail is zzslowgangstazz@hotmail.com ... thanx
---------------operating system------------------ Windows 98 second edition ------------------servything--------------------- I use webxq which when someone dials straight into the ip it goes to a folder wit the stuff in it...Dont really want to get rid it cost me 100 bucks.<<<<No Comments pleaze :^)|||||||| ----------------php version-------------------- ????? ----------------Error Message--------------------- Nothing happens -----------------Relevant code--------------------- - -footer.pl- #!usr/bin/perl ############### # Footer # # by Mike Wheeler # # Command-O Software # # Copyright 1996 #put this on page you want footer to appear <!--#exec cgi="footer.cgi"--> # All Rights Reserved # #If you find this script useful, we would appreciate a #donation to keep this service active for the community. #Command-O Software, P.O. Box 12200, Jackson WY 83002 ############### $footer_file = "/usr/local/etc/httpd/htdocs/demos/footer.txt"; print "Content-type: text/htmlnn"; open(FILE,"$footer_file"); while(<FILE>) { print $_; } exit; - -index.htm- <HTML> <Header> <Title>JOTTS Webdesign</title> </header> <body > <center> <img src="logo.bmp"> </center> <table Align="Center" border="1"> <TR> <TD><center><a href="index.htm"><img src="home.jpg"></a></center></td> <TD><center><a href="example.htm"><img src="ex.jpg"></a></center></td> <TD><center><a href="apply.htm"><img src="apply.jpg"></a></center></td> <TD><Center><a href="about.htm"><img src="about.jpg"></a></center></td> <TD><Center><a href="contact.htm"><img src="contact.jpg"></a></center></td> <TD><center><a href="login.htm"><img src="login.jpg"></a></center></td> </tr> </table> <br><BR><BR><BR> <center> <img src="ben/under.gif"> <!--#exec cgi="footer.cgi"--> </center> </body> </html> ------------------------------------------------- Thanx to all help you can give me |
|
#2
|
|||
|
|||
|
RE: CGI AND ALL SCRIPT
ONe of two things isnt happening. Either you arent set up to handle server side includes, or your Web Server doesnt know that the cgi-bin directory is supposed to be set up for CGI.
|
|
#3
|
|||
|
|||
|
RE: RE: CGI AND ALL SCRIPT
Quote:
|
|
#4
|
|||
|
|||
|
RE: CGI AND ALL SCRIPT
well, first of all, the files have to be executable that are cgi files.....and yes, I would recommend putting the executables in a cgi-bin directory with execute permissions. Safer that way.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > CGI AND ALL SCRIPT |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|