A
Anonymous
Guest
Hi I'm using HTTP authentication in PHP, it works on my local PC but not webserver(paid). The error comes like this ..
Here is my code ::
Code:
Warning: main(Auth/HTTP.php): failed to open stream: No such file or directory in /public_html/project/admin.php on line 11
Fatal error: main(): Failed opening required 'Auth/HTTP.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/project/admin.php on line 11
Here is my code ::
Code:
require_once("Auth/HTTP.php");
$AuthOptions = array(
'dsn'=>"mysql://uname:pass@localhost/db",
'table'=>"admin",
'usernamecol'=>"adminID",
'passwordcol'=>"password",
'cryptType'=>"none",
'db_fields'=>"*"
);
$a = new Auth_HTTP("DB", $AuthOptions);