Hi,
Thanks for your reply...
I was installed and configured db2 server from windows
2000 to linux db2 client.
And also i done ODBC connection but when i attempt the
following error display..
Warning: SQL error: [IBM][CLI Driver] SQL1031N The
database directory cannot be found on the indicated
file system. SQLSTATE=58031 , SQL state 58031 in
SQLConnect in /usr/local/apache/htdocs/donedb2.php on
line 5
mycode is :
DSN : GARANTDB
DATABASE NAME: GARANTDB
<?php
$dbconn =
odbc_connect('GARANTDB','db2inst2','password') or
die('ERROR : Connect Failed');
if ($dbconn == 0)
{
echo("Connection to database failed.");
$sqlerror = odbc_errormsg($dbconn);
echo($sqlerror);
}
else
{
echo "** connected **";
}
odbc_close($dbconn);
?>
could you give me any suggestions....
Please do the needful...
Thanks
Gavaskar Rathanam
--- Wade <[EMAIL PROTECTED]> wrote:
> 04182005 0657 GMT-6
>
> Ok. Sorry about that.
> Go to
>
> /opt/lampp/htdocs/xampp/123db.php
>
> and open this file. The file name is 123db.php.
> Inside of this file look
> for the function odbc_connect(). It will be
> soemthing like this:
> function odbc_connect() {
> code here
> }
>
> If you cant find this function, this is why you are
> getting the error -
> because it has not been definded.
>
> If you do find the function but there is nothing in
> it, or it has //
> infront of it, remove the //.
>
>
> Wade
>
>
>
> Gavaskar Rathanam wrote:
>
> >Hi Wade,
> >
> >sorry i am not understand what u r say? kindly
> explain
> >me...
> >
> >Thanks,
> >Gavaskar
> >
> >--- Wade <[EMAIL PROTECTED]> wrote:
> >
> >
> >>04182005 0824 GMT-6
> >>
> >>Gavaskar, go to the 123db.php file and open it.
> Look
> >>for the
> >>odbc_connect() function. If its undefined then its
> >>being called but its
> >>not defined anywhere. You might need to create it.
> >>
> >>Wade
> >>
> >>
> >>
> >>Gavaskar Rathanam wrote:
> >>
> >>
> >>
> >>>Hi Group,
> >>>
> >>>My system setup is PHP(Application) in linux
> >>>
> >>>
> >>machine
> >>
> >>
> >>>and DB2 V8.2 is windows machine. I was installed
> >>>
> >>>
> >>DB2
> >>
> >>
> >>>server in windows (also DSN created)and also
> >>>
> >>>
> >>installed
> >>
> >>
> >>>DB2 client in linux machine (client system
> showing
> >>>
> >>>
> >>db2
> >>
> >>
> >>>database and tables from server). But i am unable
> >>>
> >>>
> >>to
> >>
> >>
> >>>connect through PHP code (odbc_connect()).
> >>>
> >>>I was tried and following error accured...
> >>>
> >>>Fatal error: Call to undefined function
> >>>
> >>>
> >>odbc_connect()
> >>
> >>
> >>>in /opt/lampp/htdocs/xampp/123db.php
> >>>
> >>>How can i configure made this condition if you
> any
> >>>idea please reply immediately
> >>>
> >>>Thanks,
> >>>Gavaskar Rathanam
> >>>
> >>>
> >>>
> >>>
> >>>__________________________________
> >>>Yahoo! Mail Mobile
> >>>Take Yahoo! Mail with you! Check email on your
> >>>
> >>>
> >>mobile phone.
> >>
> >>
> >>>http://mobile.yahoo.com/learn/mail
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Mail - Helps protect you from nasty viruses.
>
> >http://promotions.yahoo.com/new_mail
> >
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
__________________________________
Do you Yahoo!?
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/