for a new project i should use php for user authentication with database (so much member) but these members can take files from "http authenticate folder" in apache servers.
so to do this they should put the write name and pass (in the password file of apache) but i dont want to show users the servers authentication screen
here is
Code: Select all
<?php
$head="GET /ddd.wmv HTTP/1.1\r\n"."Host: localhost\r\n".
"Connection: Keep-Alive\r\n"."Authorization: Basic ZGlybWFua2VuOjI2NzYyNw==\r\n\r\n";
$fp = fsockopen ("localhost", 80, $errno, $errstr, 30);
// code for reading and outputing to the client
?>i can do like this but i dont want to do like this because it is hard for the server. do you know how ican.
thanks
?>