Log in

View Full Version : Code Or Script needed


KeneticKangaroo
01-10-2003, 09:08 PM
I have a link to a file for people to download, but how do i make it that only people who are registered and logged in have access to it?

is there a line of code i can use?

TECK
01-10-2003, 09:29 PM
Add it as an attachment... if the file is to big, simply change temporarly the attachment size to attach it, then restore it to the small size.
Once done this, simply set permissions for the users to download only if they are registered.
Is as simple as this. :)

KeneticKangaroo
01-10-2003, 09:36 PM
no no, i mean a actual link no attachment,
thought of another way, what about the whole .php page how can i make that just logged in users can view?

KeneticKangaroo
01-11-2003, 07:46 AM
I did it, cheers

TECK
01-11-2003, 01:17 PM
The attachment is like a link, is the same way like you store that file onto your server. Instead you store it onto the database, same result, it will take the same space.

BTW, congrats. :)