Re: Re[2]: [PHP] is there a way to track downloads
Well see I don't know where to begin all this. I have a plain html page, with links to the songs: ../music/song.mp3 And I woudn't know where to start, in creating a php track file, or a text file to keep track. I am able to have MySQL on the hosting server, which I am going to enable... and from there I am lost. Sorry for giving up, but it seems to hard for me, plus I only have about 2 weeks to learn PhP, if I wanted to implement this... I don't think that is possible. Kevin J "Julie Meloni" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > KJ> I am looking at scripts and realize that I need to use a database for this, > KJ> etc... so I am just gonna forget the whole thing. > > Unfortunate, that giving up so easily! You can also do exactly the > same type of tracking in a plain text file, if you do not have access > to a db. Substitute opening a file and writing a line, for inserting > a record into a db. > > Plenty of examples in the manual. (ok, at least 1) > > > - Julie > > --> Julie Meloni > --> [EMAIL PROTECTED] > --> www.thickbook.com > > Find "Sams Teach Yourself MySQL in 24 Hours" at > http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is there a way to track downloads
Hello, My fault, I didn't state that i was a complete Newbie to PHP. I am looking at scripts and realize that I need to use a database for this, etc... so I am just gonna forget the whole thing. Thanks anyways Kevin J "Duncan Hill" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sun, 23 Jun 2002, Kevin J wrote: > > > Hey all, > > > > I would like to place some files on my site and use PHP to track how many > > users have downloaded those files. > > > > Is this possible? > > Approach the problem logically: > > 1) You have a series of files that you want people to download. > 2) You want to track which files are downloaded. > 3) You don't want people accessing the files directly. > > So, a file called download.php. > Accepts a parameter - the file name to make available. > Logs an entry of IP and file (and whatever else) to a file / database / > whatever. > Makes the file available to the user - but the path is hidden / created on > the fly so that a particular file cannot be pulled without going through the > script. > > The actual code is left as an excercise for the reader. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] is there a way to track downloads
Hey all, I would like to place some files on my site and use PHP to track how many users have downloaded those files. Is this possible? Is the PHP code only placed on this one page? I don't know PHP all that well, but my host supports it, and I want to track downloads, also to be able ot have them shown on the page (if possible) Thanks for any help, Kevin J -- http://www.wishpocket.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] NEWBIE- Is this possible? How?!
Yup, you just hit the nail on the head with that one Justin. I am sure this isn't the best way to learn PhP, but I am running out of ideas for making this website work. Static content just seems boring these days, so I would liek to "spice" up the site by having the band members themselves contribute to the site, instead of me always doing it. It might bring people to the site more often, and make it more interesting for the band members. I just have to figure out whwre to start, thats all. Thanks, Kevin J "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Translation: > > You want a password-protected form, which the band members can access, which > overwrites (updates) a central (or individual) chunk of text. > > This text is placed inside a HTML page (dynamic, whatever, doesn't matter) > at run time, and is visible each time the page is hit, until someone else in > the band overwrites it. > > This can be achieved quite easily, but may not be an ideal "first go" at > PHP. > > In simple terms, you want: > > - a form > - validation of that form (user, password, content validity, minor security > checks) > - overwrite a text file or MySQL database field with the new text > - include that text in your home page (or whatever). > > > Justin French > ---- > Creative Director > http://Indent.com.au > > > > > on 07/06/02 11:50 AM, Kevin J ([EMAIL PROTECTED]) wrote: > > > > > Hello All Helpers! :) > > > > I was wondering if it is possible to mix Dynamic Content with Layers? > > > > If not I was wondering if someone can help me with my idea: > > > > I have designed a website for a band (see below name) and I would like to > > add a feature where the band members can log in and write something, and > > have it displayed on the page...i guess kinda like a guestbook, but I would > > like to have the content to be overwritable. I guess if the band members > > had their own page, they could add their own content whenever they wanted > > to, and it would update accordingly. > > > > Be warned I have no background in PhP. > > > > I would basically like to know what it is I am looking for to creating this. > > I have bought Beginning PhP 4 by Wrox, and I am slowly getting into it. I > > just need some direction please. > > > > Thanks, > > > > Kevin > > > > Thanks, > > > > Kevin J > > > > -- > > http://www.wishpocket.com > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] NEWBIE- Is this possible? How?!
Hello All Helpers! :) I was wondering if it is possible to mix Dynamic Content with Layers? If not I was wondering if someone can help me with my idea: I have designed a website for a band (see below name) and I would like to add a feature where the band members can log in and write something, and have it displayed on the page...i guess kinda like a guestbook, but I would like to have the content to be overwritable. I guess if the band members had their own page, they could add their own content whenever they wanted to, and it would update accordingly. Be warned I have no background in PhP. I would basically like to know what it is I am looking for to creating this. I have bought Beginning PhP 4 by Wrox, and I am slowly getting into it. I just need some direction please. Thanks, Kevin Thanks, Kevin J -- http://www.wishpocket.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] --NEWBIE-- T_String parse error ??
Hello all, I am new to PhP, and I just bought the Beginning PhP 4 book, and i got my first parse error, and I have no idea what it is i done wrong, cause its not covered in this book!!! this is the message i get: Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\example1.php on line 1 What does this mean? and how can i fix it? Thank you! Kevin J -- http://www.wishpocket.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php