Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ASE via PHP on Mac OS X

3 views
Skip to first unread message

Aang

unread,
Aug 30, 2007, 1:57:32 PM8/30/07
to
Does anyone know how to get PHP on OS X talking to ASE?
Right now sybase_connect comes back as undefined. Probably
something simple, but not sure where to start.

Thanks in advance,
Aang

FMA

unread,
Sep 18, 2007, 7:50:44 AM9/18/07
to

I'm trying the same thing here. Had to download ADODB
Library from sourceforge.net. But still can't connect. Looks
like there is no way to set the port for the server...

FMA

unread,
Sep 18, 2007, 8:10:50 AM9/18/07
to
Maybe someone@sybase could give us some sample php code to
connect ?

I tried the following with no success :

<?php
include('adodb/adodb.inc.php');

$login = rawurlencode("blah_blah");
$password ="blah";
$server = "blah,5500";
$database ="blah";
#$option=("?PORT=5500 & CHARSET='mac'");

$db = NewADOConnection (rawurlencode("sybase_ase"));
$db->Connect("$server", "$login", "$password",
"$database");

if (!$db) die("Connection failed");

# no need to call connect/pconnect!
$arr = $db->GetArray("select * from USERS");

?>

0 new messages