05-06-2003, 06:00 PM
05-06-2003, 06:37 PM
Learn Perl and JavaScript. With those two scripts working together, you can make any kind of counter.
Perl is the most-used CGI script, and JavaScript...You know what JavaScript is :wink:
Perl is the most-used CGI script, and JavaScript...You know what JavaScript is :wink:
05-07-2003, 02:41 AM
javascript can't be used, but perl or php (or asp, or any cgi script for that matter). but it's hard to say if lycos supports cgi (and i doubt it).
05-07-2003, 03:37 AM
Thanks all:
I see i must learn PHP! Lycos supports it (Nathan has a forum at Qbsux, I imagine it's php)
I just installed a local server and run my first hello.php...
Seems interesting :bounce:
Warning: wizardlife and I will flood this forum with questions!
I see i must learn PHP! Lycos supports it (Nathan has a forum at Qbsux, I imagine it's php)
I just installed a local server and run my first hello.php...
Seems interesting :bounce:
Warning: wizardlife and I will flood this forum with questions!
05-07-2003, 04:08 AM
My idea was
But I don't know. I'm new at php as well.
Code:
<a href="download.zip><?php add-to-counter script ?></a>
But I don't know. I'm new at php as well.
05-07-2003, 06:33 AM
Quote:javascript can't be used...I meant Javascript AND Perl. Together.
Perl could be used alone. But if you know JavaScipt, why not?
05-08-2003, 04:46 AM
Quote:a href="download.zip><?php add-to-counter script ?></a>
I use
Code:
<a href="get.php?thefilenamewitoutdotzip></a>
http://dascdev.net
I use that coundet, assuming that is the link, im just guessing..
edit: it works!
05-08-2003, 06:52 AM
i would use the following, though I think this code could be wrong:
http://www.mysite.com/download.php?filen...lename.zip
http://www.mysite.com/download.php?filen...lename.zip
Code:
<?php
$handle = fopen($filename, "r");
while (!feof ($handle)) {
$buffer = fgets($handle, 4096);
}
fclose ($handle);
$buffer++;
$handle = fopen($filename, "a");
fwrite ($handle, $buffer);
fclose ($handle);
header("Location: http://yoursite.com/downloads/$filename");
?>
05-09-2003, 01:28 PM
Quote:Thanks all:
I see i must learn PHP! Lycos supports it (Nathan has a forum at Qbsux, I imagine it's php)
I just installed a local server and run my first hello.php...
Seems interesting :bounce:
Warning: wizardlife and I will flood this forum with questions!
And I, will flood this forum with Frontpage questions. LOL
05-12-2003, 06:05 PM
Quote:How I could count the number of downloads for each source I put in my site?
PHP 8)
www.phpfreaks.com >>> tutorials, scripts [paid and some free] and more!
If you can't find what you need than I will write you a php script and add it to our database 8)