Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Help Needed in CGI Script Please
Old 02-06-2004, 03:16 AM Help Needed in CGI Script Please
Junior Talker

Posts: 2
Trades: 0
Hello Friends,

I am Pramod. New to this forums. I came here to seek help from you guys.

I am running a real media streaming music website. I have got a cgi script which can be used to make a playlist & play the files.

Please check the demo of the script which is running

http://www.kannadaaudio.com/demo.htm
===http://www.kannadaaudio.com/list.cgi

See the Code here =

print <<EndHTML1;

<html><head><title>Here comes~</title></head>
<body><center>

EndHTML1

@Lists = split(/,/, $FORM{'text1'});


$FILE_NAME = $YEAR.$MONTH.$DAY. "_" .$HR.$MIN.$SEC.".ram";
$FILE_NAME2 = ">".$FILE_NAME;

open(OUTF,$FILE_NAME2) or &dienice("Couldn't open survey.out for
writing. Please notify webmaster.");

foreach $list (@Lists) {
print OUTF "$Songs{$list}\n";
}

close(OUTF);


# Modify this yourself if you want a different look.. or add a pop up
# windows for the .ram file. If you don't know how to do it. I suggest
# you leave it as it is. =)

print <<EndHTML;


Here is your list<p>
<img src="http://images.real.com/pics/general/*reeplayer_g2.gif"><p>

<a href="$FILE_NAME">Click Here to listen!</a><p>
Thanks for visiting my site. =)
<p>
<br>



EndHTML


print "</body></html>";

sub dienice {
($msg) = @_;
print "<h2>Error</h2>\n";
print $msg;
exit;
}


Download the source code here = http://www.kannadaaudio.com/reallist.zip

Wht i want you to help me in is===

When it is play it goes to the next page but i don't want that...........

I want like this so that the created .ram file should be executed automatically & played in the realplayer instead of goin to next page & clicking on it....

Sorry for bad english........

Pramod
pramod is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-09-2004, 01:55 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
This shoudl work for you,,

Were this part is:

print <<EndHTML;


Here is your list<p>
<img src="http://images.real.com/pics/general/*reeplayer_g2.gif"><p>

<a href="$FILE_NAME">Click Here to listen!</a><p>
Thanks for visiting my site. =)
<p>
<br>



EndHTML
------

Put this:
print <<EndHTML;
<html>
<head>
<title>Listin!</title>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=$FILE_NAME">
</head>
<body>
<img src="http://images.real.com/pics/general/*reeplayer_g2.gif"><p>
If the file does not start playing click the below link.<BR>
<a href="$FILE_NAME">Click Here to listen!</a><p>
Thanks for visiting my site. =)
<p>
<br>
</body>
</html>


EndHTML
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 02-10-2004, 07:05 AM
Junior Talker

Posts: 2
Trades: 0
thanx man. but i don't want it to go to next page. it should just play from the source page itself where the jukebox is.
pramod is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help Needed in CGI Script Please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40638 seconds with 12 queries