problem with manual installation
| From: | Oscar Karlsson | Date: | Tue, 13 Jul 2004 11:45:13 +0000 |
| Subject: | problem with manual installation | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-13672@lists.php.net to get a copy of this message | ||
Hi!
I am trying to install PEAR on a shared web service where I don't have any
shell access. I tried do the steps as described in the manual installation
document but when I try to connect to my database I get "DB Error:
insufficient permissions".
My connect script is looking like this (trying to connect to the database
users which exists):
<?php
ini_set("include_path", '/customers/lzr/lzr/httpd.www/includes/' .
PATH_SEPARATOR . ini_get("include_path"));
require_once 'DB.php';
$datasource = "mysql://lzr:<pwd>@localhost/users";
$db_object = DB::connect($datasource, TRUE);
if(DB::isError($db_object)) {
die($db_object->getMessage());
}
$db_object->setFetchMode(DB_FETCHMODE_ASSOC);
include('check_login.php');
?>
Anyone have any idea what I am doing wrong?
Regards
Oscar