English
PHP, HTML & JavaScript- Forum

Done: Script for Download-counter sought

 

KHR
Hello together,

goes of course on the Topic XProfan far past, but here are so enough Specialists, The me hopefully nevertheless NEN hint give can.

I Search one Script for ne homepage the me The Downloads counts.

my Review is, that 5-15 different Files to that DL offered go, the Script evt moreover ne small surface provides and in the background (or open) for each File NEN counter lead. unfortunately Have I To little Idea around the yourself on the Web find. Since there it so crazy plenty - but something suitable Have I do not seen/recognized.

If it each downloads still in ne list enters would the naturally yet much better.

would be beautiful, if it without SQL only with Textfiles went.

who can me there what suggest? Who there Perhaps what ready?
 
Gruß
Karl-Heinz
WIN XP home/Pro / XPROFAN 11 / P2CPP
ATMEL + BASCOM Fan
04/11/09  
 




Rolf
Koch
Hi Karl-Heinz,

if you The Downloads over the community walk can, haste always a Download-Counter.
If you hold self on one Server with Php Support grab can, then (roughly):
a.) Html Page with the Downloads create
b.) The therein located a hrefs verweisen on a download.php
c.) in this becomes then
- recognized, which File straight klicked watts
- To this File a available Textdatei opened
- the worth in this higher staid circa 1
- naturally again closed
now could You you too a Php How auswertung.php write,
which z.B. in Tabellenform you The jeweiligen Downloadzahlen to the Files indicating, because
You The Files ausliest.

so far first once The theory
iF becomes sehrwahrscheinlich again a praktikablere Solution parat having, but think on it:
i'm Yes only iFs Php apprentice *lol*

Nachtrag: look here, this is the Auswertungsfile, which I then for me incl. the download.php
written have.
[...] 

Have strain time gekuckt - here The download.php
CompileMarkSeparation
<?
header(Content-Disposition: attachment; filename=.$file);

if (file_exists($file._counter.txt))

    {

         $datei=fopen($file._counter.txt,r);
         $zaehler=fgets($datei,255);
        fclose($datei);
         $zaehler++;
         $datei=fopen($file._counter.txt,w);
        fputs($datei,$zaehler);
        fclose($datei);

    };

    readfile($file)
>; ?>

You lay there where The download.php lying each to that Filenames a Textdatei on.
to that example: myapplication.exe_counter.txt (this _counter.txt is important)
best yet any read/Schreibrechte on each Textfile by FTP give away.

The appeal in your Downloadseite ought to then about (adaptable - Text, graphic o.ä)
so looks:
CompileMarkSeparation
 
04/11/09  
 



Something like?

appeal z.B. over /dl.php?q=down26.gif

back, small Sicherheitsproblem discover...

11 kB
Hochgeladen:04/11/09
Downloadcounter365
Download
 
04/11/09  
 



Error fixed, Download updated: [...] 
 
04/11/09  
 




KHR
Hello David, Hello Rolf,

thanks for Your endeavours. be yet none to that testing come.

having a Blitzbesuch on taiwan and there NEN small industrial accident. Okay - one ought to really no 3-m Bockleiter to that stelzen-walk take.

but The Mädels, The me whom poor joined having, were Real something like of sweetly.......... . the alone was The thing already worth.

OK - be now again at home. mandatory but yet some on missed Terminen make up.
 
Gruß
Karl-Heinz
WIN XP home/Pro / XPROFAN 11 / P2CPP
ATMEL + BASCOM Fan
04/20/09  
 



KHR, Beitrag=51900, Zeitpunkt=20.04.2009
Okay - one ought to really no 3-m Bockleiter to that stelzen-walk take.




 
04/21/09  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

13.772 Views

Untitledvor 0 min.
Manfred Barei03/08/19
Georg Teles05/23/14
Julian Schmidt03/30/13
Untitled09/26/12
More...

Themeninformationen

this Topic has 3 subscriber:

iF (3x)
KHR (2x)
Rolf Koch (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie