Gossamer Forum
Home : General : Perl Programming :

New script in town!

Quote Reply
New script in town!
Title: MP3 Software
Version: 1.0
License: Freeware
Location: http://www.cellwarp.com/scripts/mp3software/
Description: CGI search engine with complete database of over than 100 MP3 software, including reviews, downloads, and more. One extra option -- you can setup an affiliate links to Beyond.com, and actually sell the MP3 software Smile





------------------
Complete Index of Web Master's Resources: http://www.cellwarp.com
Quote Reply
Re: New script in town! In reply to
Nice script, Pasha.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: New script in town! In reply to
hey pasha..

suggestion..

Code:
foreach $mp3 (@mp3s)
{
$z++;
if ($mp3 =~ /$search/i)
{
@data = split(/\|/,$mp3);
print "<li><a href=\"$ENV{'SCRIPT_NAME'}?id=$z\">$data[1]</a> $data[5] ($data[4]) $data[6]</li>";
}
}

to

Code:
foreach (grep {/$search/} @mp3s) {
$z++;
@data = split(/\|/,$_);
print "<li><a href=\"$ENV{'SCRIPT_NAME'}?id=$z\">$data[1]</a> $data[5] ($data[4]) $data[6]</li>";
}

just faster just in case it's one big db..
you can use it for a few other places on your script. but then you'll have to make a individual regexp for each one..

jerry
Quote Reply
Re: New script in town! In reply to
Thanks Jerry, but I don't plan to do the next version. The most valuable thing in this package is the database which was the most difficult task to complete Smile





------------------
Complete Index of Web Master's Resources: http://www.cellwarp.com
Quote Reply
Re: New script in town! In reply to
Hi Pasha,

Can I use this to create a shareware site like download.com, where people can upload their files to my server? Do I need to do any additional modifications?

If so, can someone cause any harm (virus etc.. ) by uploading some crap?
Quote Reply
Re: New script in town! In reply to
this thing is just like a mini itty bitty links.. except it's all dynamic.. the database is just urls.. it doesn't actually store files or stuff.. just searchable..

if someone uploads a virus.. nothing will happen unless your host opens it.. i'd expect your host to have virus scan or something and it will just delete the file..

jerry
Quote Reply
Re: New script in town! In reply to
oh.. sorry Wink

jerry
Quote Reply
Re: New script in town! In reply to
 
Quote:
mini itty bitty

Thanks Jerry! Smile






------------------
Complete Index of Web Master's Resources: http://www.cellwarp.com
Quote Reply
Re: New script in town! In reply to
By the way, if anyone is going to use this script, then please let me know where. ... it's still free Smile


Best regards,

Pasha





------------------
Complete Index of Web Master's Resources: http://www.cellwarp.com