RE: [PHP] passing authorization code

2002-04-26 Thread John Holmes

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:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 11:01 AM
> To: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> 
> 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] passing authorization code

2002-04-26 Thread Mark Gallagher



wm wrote:

> .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:[EMAIL PROTECTED]
> 
> 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.

You could try saving a cookie?




-- 
Mark Gallagher


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php