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
> 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
> needs to be transparent.
> the reason i want to do this is so that somebody can't path directly
> 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.
> file needs to be
> embedded in the web page.....
> thanks.
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to