[PHP] [PHP-WIN] Re: [PHP] Shell Script error

2004-11-10 Thread Angelo Zanetti
not too sure but can your database name be a path?? >>> Rui Francisco <[EMAIL PROTECTED]> 11/10/2004 4:28:21 PM >>> Its a simple script $_SERVER['utilizador']='user'; $_SERVER['pass']='pass'; $_SERVER['host']='localhost or IP address'; $_SERVER['db_name']='c:/path/dbname.fdb'; include_once('DB.

Re: [PHP] Shell Script error

2004-11-10 Thread Matthew Weier O'Phinney
* Rui Francisco <[EMAIL PROTECTED]>: > > Its a simple script > > $_SERVER['utilizador']='user'; > $_SERVER['pass']='pass'; > $_SERVER['host']='localhost or IP address'; > $_SERVER['db_name']='c:/path/dbname.fdb'; Why are you using the $_SERVER array? This is supposed to provide information regardi

Re: [PHP] Shell Script error

2004-11-10 Thread Rui Francisco
Its a simple script $_SERVER['utilizador']='user'; $_SERVER['pass']='pass'; $_SERVER['host']='localhost or IP address'; $_SERVER['db_name']='c:/path/dbname.fdb'; include_once('DB.php'); $dsn="ibase://".$_SERVER['utilizador'].":".$_SERVER['pass']."@".$_SERVER['host']."/".$_SERVER['db_name']; $lig

Re: [PHP] Shell Script error

2004-11-10 Thread Angelo Zanetti
well maybe you are trying to connect to localhost which could be fine for the server but not from commandline... send more info. >>> Rui Francisco <[EMAIL PROTECTED]> 11/10/2004 2:06:09 PM >>> Hi, I have a small problem with a PHP script with Pear DB The problem is the following: I'm creating a

[PHP] Shell Script error

2004-11-10 Thread Rui Francisco
Hi, I have a small problem with a PHP script with Pear DB The problem is the following: I'm creating a shell script in PHP that access one interbase database. The problem is that if i run it on a webserver the script run correctly but if i runit in the command line it reports one error (DB Error: