note 46895 added to function.odbc-connect

From: Date: Wed, 27 Oct 2004 10:35:37 +0000
Subject: note 46895 added to function.odbc-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-79165@lists.php.net to get a copy of this message
Hi i am trying to use php to connect to an IBM AS400 system i can connect but it seems to take ages to return any information. it appears to be trying to make a new connection each time. i am using the following to connect. <? $host = "LAWSON01"; $username = "*******"; $password = "********"; $link = odbc_pconnect($host, $username, $password,SQL_CUR_USE_ODBC) or die (odbc_errormsg() ); ?> is there anyway i can improve this as users will not use the system with a 10 - 15 second delay before each page is displayed. ---- Manual Page -- http://www.php.net/manual/en/function.odbc-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46895 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46895&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46895&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46895&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46895&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46895&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46895&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46895&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79165) next »