Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-16 Thread Mishari
ot a valid URL.'); > } > > if (!in_array($userid) ) { > echo "please login."; > die(); > } > header("Content-type: application/octet-stream\n"); > header("Content-disposition: attachment; > filename=\"" . $_REQUEST['file']

[PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-15 Thread Mishari
Hi All I built a MySQL table for all authorized users and their password , when user correctly enter his username and password he can access to a PHP site that contains a link to all document he need When he click on one of the document to he can download it, the URL will appear : http://www.my

Re: [PHP] Link to a Site

2003-06-03 Thread Mishari
Hi, I used it before, but I had a problem my code look like, if (--) { echo "---"; header(--); } I don't know what is it? --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Discused few threads ago: > header('Refresh: 15; url=newurl.php' ); >

[PHP] Link to a Site

2003-06-03 Thread Mishari
Hi all, I need help, actually I'm building a PHP site where my users will wait for a few seconds reading a text then it will automatically link them to another site. I'm looking for the command which auto. link to other sites. Kind Regards, esheager __ Do you Y