Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old March 17th, 2004, 01:50 AM
DarkDrift DarkDrift is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 DarkDrift User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to DarkDrift
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

Reply With Quote
  #2  
Old March 17th, 2004, 01:56 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
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.

Reply With Quote
  #3  
Old March 17th, 2004, 02:14 AM
DarkDrift DarkDrift is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 DarkDrift User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to DarkDrift
RE: RE: CGI AND ALL SCRIPT


Quote:
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.
do i HAVE to have a cgi bin or can i just put all of the files in one folder together(htm., pl., asp.,etc)

Reply With Quote
  #4  
Old March 17th, 2004, 03:15 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > CGI AND ALL SCRIPT


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway