How to make a directory / file only available to registered users using PHP code?

From: Date: Mon, 07 Apr 2008 15:56:25 +0000
Subject: How to make a directory / file only available to registered users using PHP code?
Groups: php.general 
Request: Send a blank email to php-general+get-272652@lists.php.net to get a copy of this message
hi, I put a file "setup.exe" in a directory "downloaddir\" I want to build PHP code, so that only registered users are able to download the file. How to make the directory / files only available to registered users using PHP code? (So that other users cannot download the file using direct url "http:\\www.abcd.org\downloaddir\setup.exe" ) TIA Rian

« previous php.general (#272652) next »