RE: [PHP] passing authorization code

From: Date: Fri, 26 Apr 2002 21:12:19 +0000
Subject: RE: [PHP] passing authorization code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94772@lists.php.net to get a copy of this message
Place the .mov files outside of your web folders, and write a PHP file that'll control the outputting of them. You would link to the .php file just like you would a .mov file, but you have the PHP check for a session or something to verify that the user should be able to view the .mov file. If they are allowed, then send the appropriate .mov headers with header() and then output the data. ---John Holmes... > -----Original Message----- > From: wm [mailto:webmaster@blanktv.com] > Sent: Friday, April 26, 2002 11:01 AM > To: php-general@lists.php.net > Subject: [PHP] passing authorization code > > hi, > > .htaccess file requires user and pass. > > anybody know how to pass this info with a script so that the user is > allowed into the directory? not in the url either. not > user:pass@domain.com. > > needs to be transparent. > > the reason i want to do this is so that somebody can't path directly to > a .mov file, but so they can click on a link and a script can "fetch" > the file from the protected directory by passing the user and pass. the > file needs to be > embedded in the web page..... > > thanks. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#94772) next »