View Full Version : CGI Help


TheDisturbedOne
03-24-2003, 02:03 AM
every time i try to veiw my cgi script on tripod .com i get this error

It looks like there was an error:
Your script produced this error:
Can't find string terminator '"' anywhere before EOF at music.cgi line 180.

Please help!

zangerbanger
03-24-2003, 02:38 AM
Maybe it's because tripod doesn't support CGI scripts.

(I've never used Tripod before so I'm not 100% sure)

pb&j
03-24-2003, 02:58 AM
tripod has very limited cgi support.

you cannot change the CHMOD on files which is basically half of using cgi files.

as for the current problem, we would have to see your cgi script to know what is happening or not.

TheDisturbedOne
03-24-2003, 11:36 AM
here it is

Can't find string terminator '"' anywhere before EOF at music.cgi line 180
here's the sorce code

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<H2>
<html>
<head>
<title>My MuSiC CoDeS</title>
</head>
<body bgcolor="black"><font color="white"><font size="6"><table border="0" CELLPADDING="5" font color="white"><tr><td BGCOLOR="#000000"><FONT FACE="ARIAL,HELVETICA" COLOR="#FFFFFF" SIZE="4"><a href="index1.html"target="Frame2">Home</a>
<br>
<a href="index4.html">Music Streams</a>
<br>
<a href="tutrails.html">tutrails</a>
<br>
<a href="mylinks.html">My Links</a>
<br>
<a href="link.html">Link Exchange</a>
<br>
<a href=" mailtoisturbed02\@attbi
.com">Email Me</a>
<br>
<a href="gbook.html">Sign My G-book</a>
<br>
<a href="member.html">Members only</a>
<br>
<a href="dloads.html">Downloads</a>
<br>
<SCRIPT LANGUAGE="JavaScript">
jsurl = "http://counter.sparklit.com/counter_js.spark";
document.write("<SCRIPT LANGUAGE=\"JavaScript\" ");
document.write(" src=\""+ jsurl + "?ID=163537");
document.writeln("&c=" + Math.random()*10000 + "\">\n<\/SCRIPT>");
</SCRIPT>

</body>
</noframes>
<div align="left">
<a target="Frame2" href="http://t.extreme-dm.com/?login=aaron489">
<img src="http://u1.extreme-dm.com/i.gif" height=38
border=0 width=41 alt=""></a><script language="javascript1.2"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script language="javascript">
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://t0.extreme-dm.com",
"/0.gif?tag=aaron489&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
</script><noscript><img height=1 width=1 alt=""
src="http://t0.extreme-dm.com/0.gif?tag=aaron489&j=n"></noscript>
</html>
<div align="left">
<EMBED SRC="http://home.attbi.com/~dogman69/wsb/media/160996/site1009.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true>

<body bgcolor="black"TEXT="#FFFFFF" LINK="red" VLINK="red" ALINK="red><script language=JavaScript>
</td><tr><td BGCOLOR="#000000"><FONT FACE="ARIAL,HELVETICA" COLOR="#FFFFFF" SIZE="4">To use these codes just cut and paste these codes to your homepage.Please <a href="mailto:disturbed02@attbi.com">email me</a>your music requsts so i know what to post on my webpage.<a href="index4.html">Rock</a> <a href="hiphop.html">Hip Hop</a> <a href="clasicrock.html">Clasic Rock</a><br><br>Metallica Enter SandMan<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~dogman69/wsb/media/160996/site1009.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~dogman69/wsb/media/160996/site1009.rm">Listin</a><br>Marilyn Manson - Disposible Teens<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~disturbed02/wsb/media/117488/site1002.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~disturbed02/wsb/media/117488/site1002.rm"target="new">listin</a><br>Disturbed - Prayer<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~disturbed02/wsb/media/117488/site1003.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~disturbed02/wsb/media/117488/site1003.rm"Target="new">listin</a><br>Disturbed - Down with the sickness<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~disturbed02/wsb/media/117488/site1004.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~disturbed02/wsb/media/117488/site1004.rm"target="new">Listin</a><br>Static - X Get Into The Gone<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<br>
<EMBED SRC="http://home.attbi.com/~disturbed02/wsb/media/117488/site1005.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~disturbed02/wsb/media/117488/site1005.rm"target="new">listin</a><br>Static X - Cold<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~disturbed02/wsb/media/117488/site1006.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~disturbed02/wsb/media/117488/site1006.rm"target="new">listin</a><br>Godsmack - I stand alone<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~disturbed02/wsb/media/117488/site1007.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~disturbed02/wsb/media/117488/site1007.rm"target="new">listin</a>
<br>
Korn - Got The Life
<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<br> <EMBED SRC="http://home.attbi.com/~dogman69/wsb/media/160996/site1.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~dogman69/wsb/media/160996/site1.rm"target="new">Listin</a>
<br>
Good Charlotte - Lifestyles Of The Rich And Famous
<br>
<textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~dogman69/wsb/media/160996/site1002.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~dogman69/wsb/media/160996/site1002.rm"target="new">Listin</a>
<br>
Alien Ant Farm - Smooth Crimenal
<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~dogman69/wsb/media/160996/site1003.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~dogman69/wsb/media/160996/site1003.rm"target="new">Listin</a>
<br>
Nirvana - Smells Like Teen Spirit
<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~dogman69/wsb/media/160996/site1004.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~dogman69/wsb/media/160996/site1004.rm"target="new">Listin</a>
<br>
zzzzzz Dolls Kill Miss America
<br><textarea><a href="http://musiccodes.5544.net">Disturbed02's music</a>
<EMBED SRC="http://home.attbi.com/~dogman69/wsb/media/160996/site1007.rm" type="audio/x-pn-realaudio-plugin" CONTROLS="ControlPanel,StatusBar"
HEIGHT=40 WIDTH=180 AUTOSTART=true></textarea><a href="http://home.attbi.com/~dogman69/wsb/media/160996/site1007.rm">Listin</a></td><td align="right"><br><div algin="Right"><SCRIPT LANGUAGE="Javascript" TYPE="text/javascript" SRC="http://www.tag-board.com/tagboard.js"></SCRIPT><br>

<td width=200 height=200 valign=top>
<iframe src="http://www.tag-board.com/my.tag?name=Tag_Board_MC" name="tag" width="200" height="200"
marginwidth="0" marginheight="0"></iframe>
<script>netscape_support();</script>
<br>
<a href="http://www.tag-board.com/" target="_new">Powered by TagBoard Message Board</a>
<form action="http://www.tag-board.com/add.tag" method="post" name="tagform" target="tag">
<input type="hidden" name="name" value="Tag_Board_MC">
Name<br>
<input name="tagname" maxlength="20"><br>
URL or Email<br>
<input name="tagurl" maxlength="100"><br>
Messages(<a href="http://www.tag-board.com/smilies/smilies.htm" onClick="return pop_up_smilies();" target="_blank">smilies</a> )
<br>
<textarea cols="24" rows="3" name="message" wrap></textarea><br>
<input class=button type="submit" value="TAG" onclick="return Clear_Last_Message_on_Sub
mit();">
</form>
<script>rememberme()</SCRIPT>
<br><!-- Begin Sparklit HTML Code -->
<FORM ACTION="http://vote.sparklit.com/poll.spark?pollID=734794" METHOD="POST">
<INPUT TYPE=hidden NAME=ID VALUE="734794">
<TABLE BORDER="1" WIDTH=123 BGCOLOR="#DDEEFF" CELLPADDING="3" CELLSPACING="0">
<TR><TD BGCOLOR="#5588CC"><FONT FACE="ARIAL,HELVETICA" COLOR="#FFFFFF" SIZE="-1" >
<CENTER><B>Music codes webpoll</B></CENTER></FONT></TD></TR>
<TR><TD>
<FONT FACE="ARIAL,HELVETICA" COLOR="#000000" SIZE="-1">Do You Like The New Site Design</FONT><BR><BR>
<FONT FACE="ARIAL,HELVETICA" SIZE="-1" COLOR="#000000"><INPUT TYPE="radio" NAME="ballot" VALUE="0">Yes Keep It<BR>
<INPUT TYPE="radio" NAME="ballot" VALUE="1">NO Change It Back!<BR>
</FONT><BR><CENTER><INPUT TYPE="submit" VALUE="Submit Vote" NAME="submit"><BR><FONT FACE="verdana, arial, geneva"><SMALL><A HREF="http://vote.sparklit.com/poll.spark/734794" >Current Results</A></SMALL></FONT><BR><A href="http://www.sparklit.com/pc/?ID=734794"><IMG SRC="http://www.sparklit.com/images/sparklitpowered.gif" WIDTH=113 HEIGHT=24 BORDER=0></a></CENTER></TD></TR></TABLE>
</FORM></tr><td BGCOLOR="#000000"><FONT FACE="ARIAL,HELVETICA" COLOR="#FFFFFF" SIZE="4">
<tr></td></table>
</center>
</td>
</tr>
</table></td><td BGCOLOR="#000000"><FONT FACE="ARIAL,HELVETICA" COLOR="#FFFFFF" SIZE="4">
</td></tr></table></H2>";
print "</BODY></HTML>";

TheDisturbedOne
03-24-2003, 11:38 AM
tripod does alow cgi

pb&j
03-24-2003, 11:57 AM
the script may be having a problem with all of the double quotes within your print statement. usually, the inner quotes should be shown as 'single quotes' or they should be escaped \"double\" quotes.

you also seem to have double starting tags for your page coding itself...

print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<H2>
<html>
<head>
<title>My MuSiC CoDeS</title>
</head>

and the mailto link is missing a colon...
<a href="mailto:isturbed02\@attbi.com">Email Me</a>

then in the middle of your coding, you have some weird ending tags...
</body>
</noframes>
a bit further down...
</html>

and a bit further down another starting BODY tag...
<body bgcolor="black"TEXT="#FFFFFF" LINK="red" VLINK="red" ALINK="red><script language=JavaScript>

and a table must have started somewhere to have the middle here...
</td><tr><td BGCOLOR="#000000">

my eyes got tired to look any further. there may be more regular html coding errors.

TheDisturbedOne
03-24-2003, 08:38 PM
thanks for your help i couldn't figure it out. Im new at this cgi stuff

TheDisturbedOne
03-24-2003, 08:42 PM
what is CHMOD please tell me im a newbie at cgi

pb&j
03-25-2003, 03:36 AM
Originally posted by TheDisturbedOne
what is CHMOD please tell me im a newbie at cgi

as i stated before, tripod will allow a small support of cgi scripts but will NOT allow the change of CHMOD.

basically, chmod is the "permissions" you set on a file. it sets "who" is allowed to look at or execute this specific script file.

because there is a security risk, tripod will not allow the changing of these permissions. this is why they also offer their own scripts for you to use instead of real ones. (at least that was the case a couple months ago when i checked, i doubt their standards have changed since then though).