[PHP] Password protected downloads

2004-06-13 Thread Maldiv
Hello, I want to make a password protected download possibility on my site. I know how can I handle normal user login, but how can I protect a download from guests? I mean if user navigate to www.demo.com/mydownload.zip than he can download the file without login. How can I prevent this downloads?

[PHP] Update problem

2004-06-07 Thread Maldiv
Hello, I have a php update form which use $_POST and $_GET too. I call the update like this update.php?id=1 And after the user submit the form with new data I use command like this: UPDATE table SET id=$_POST['id'] WHERE $_GET['id']='1'; This code works on localhost with Apache 2, Win XP, and Php