ProgrammerNoob wrote:i can't seem to make it so i can encrypt a download...
If you feel you need to encrypt a download, run the site off HTTPS. That is the only reasonable way, and really easy.
and make it so people have to buy my item first, then they can download it, but can only download it once...can anyone help me with that? thanks...
That is a totally independent issue.
You could have a PHP script be used for downloading, and make that require authentication. Only allowing them to download it once is a pretty pointless restriction, as their connection may break during the download, etc. You could consider giving them a limited time to download it however (and make sure you have auditing to prevent account sharing etc).
You have to ask yourself WHY this requirement exists. I suspect no such requirement does exist. Look at your project's requirements in more detail. Decide whether they are reasonable and feasible, take it up with your client / manager.
In any case, there is absolutely nothing you can do to stop them sending the file to all their mates and/or sticking it straight on their favourite P2P network, selling CDs etc. A discussion of how to prevent this (or whether it's desirable at all) is really to do with DRM, and highly technical and legally complex and well out of the scope of this forum.
Mark