note 50978 added to function.sybase-connect

From: Date: Tue, 15 Mar 2005 18:30:18 +0000
Subject: note 50978 added to function.sybase-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-86494@lists.php.net to get a copy of this message
freetds is a great, free tool to access your sybase tables with PHP. The setup can be a bit tricky. Use the following to put the environment variables that you need: <?php putenv ("SYBASE=/usr/local/freetds"); putenv ("SYBPLATFORM=linux"); putenv ("LD_LIBRARY_PATH=/usr/local/freetds/lib"); putenv ("LC_ALL=default"); putenv ('PATH=\"/usr/local/freetds/bin:$PATH\"'); putenv ("DSQUERY=SYBASE"); ?> Even if not using freetds, you'll need those env vars to make any sybase connection work. Another option is to just load them into your box from the command line. ---- Manual Page -- http://www.php.net/manual/en/function.sybase-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50978 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50978&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50978&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50978&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50978&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50978&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50978&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86494) next »