home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

<!--#EXEC cgi="*****" -->

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1674
Discussions: 200,989, Posts: 2,379,862, Members: 246,356
Old January 20th, 2003, 03:48 PM   Digg it!   #1 (permalink)
Go back to sleep
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 7,387
Send a message via ICQ to Creatures
Unhappy
<!--#EXEC cgi="*****" -->

this stupid tag doesnt work!!
i downloaded a cgi program and the readme says i have to put this <!--#EXEC cgi="/cgi-bin/rumor_show.cgi" --> with the right link in a html but it doesnt work! (everything else works: adding things) but it wont display it!

stupid!
is there another way to display something

BTW the code!
Quote:
#!/usr/bin/perl

require 'rumor_config.cgi';

if (-e $randomtext_file) {
if (open(TEXTFILE,$randomtext_file)) {
while (<TEXTFILE>) {
if (! m/^#/) {
push (@randomtext,$_);
}
}
close(TEXTFILE);
}

print $randomtext[rand $#randomtext];
}
else {
# This is to prevent "Internal Server Error" when the script is new
# and there is no rumor file yet.
print "Be the first to <A href="$script_URL">add a rumor</A> right here!\n";
}

exit(0);
#END-OF-FILE

Creatures
__________________
Canon EOS 450D | Canon EF-S 18-55mm 1:3.5-5.6 IS | Canon EF-S 55-250mm 1:4-5.6 IS | Canon Speedlite 430EX II
Creatures is online now   Reply With Quote
Old January 20th, 2003, 03:52 PM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,398
does your webserver support cgi scripts?

if they don't your out of luck. Any of the free cheesy webservers like geocities won't support cgi scripts. so check with your webhost
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is offline   Reply With Quote
Old January 20th, 2003, 03:54 PM     #3 (permalink)
Go back to sleep
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 7,387
Send a message via ICQ to Creatures
yes my server supports CGI (my guestbook works on that server!) so i'm sure it should work!

Creatures
Creatures is online now   Reply With Quote
Old January 26th, 2003, 09:14 PM     #4 (permalink)
Member
 
quux's Avatar
 
Join Date: Nov 2002
Location: Hamburg
Posts: 244
no escape ?

print "Be the first to <A href=\"$script_URL\">add a rumor</A> right here!\n";

... and where is this

require 'rumor_config.cgi'; ??
---------^ ^ ^ ^ ^ ^ ^ ^ ^ ^

just a rough guest - do not count on it - did'nt any perl-cgi since Aug 99 and still fight against getting into it again. CC.

P.S.:
Can't locate rumor_config.cgi in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at test.pl line 3.
__________________
*** all that we C or Scheme is
but a dream within a dream ***
quux is offline   Reply With Quote
Old February 13th, 2003, 04:35 AM     #5 (permalink)
Junior Member
 
Join Date: Feb 2003
Posts: 4
Lightbulb
SHTML?

Just curious, have you named the file with the extension .shtml ? If not, the server won't pick up on the Server Side Include.
MiniPerl is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3065)
Charges against non-tippers dropped.. (20)
Health Care Rationing (11)
Delete an OS (17)
Nvidia GTX 260 problem (9)
Laptop with wireless problem. (12)
windows vista security holes (19)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
[F@H SPAM 11/16/09] ! 1/2 months to.. (39)
Internet Lost (5)
Recent Discussions
How to converter MTS Video to HD mpeg.. (0)
Can a page file be "too big".. (0)
Point and Shoot Camera Suggestions. (8)
Looking for new motherboard (0)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (39)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
Desktop Calendar Application (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Nvidia GTX 260 problem (9)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)
Can't open Word (12)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)


All times are GMT -4. The time now is 06:20 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28