Witam, próbuje nawiązać połącznie z poziomu PHP do Pervasiva ver. 9.50(ODBC). Wykorzystuje skrypt, który znalazłem na ich stronie. Niestety wygląda na to, jakby skrypt cały czas poszukiwał adresu docelowego. Dodam, że korzystam z WAMP-a, a serwer WAMP-a, jak i Pervasive znajdują się na jednej maszynie. Z góry dziękuje, za wszelkie podpowiedzi.

$param = "Driver={Pervasive ODBC Engine Interface};dbq=@DEMODATA";

$connect = odbc_connect($param, "", ""); // connect to DEMODATA database no userid or password

$query = "select * from Billing"; // set the query variable to contain the SQL you want to execute

$result = odbc_exec($connect, $query); // perform the query // print out the entire resultset as HTML table (uncomment following line) //

odbc_result_all($result); // or format the output yourself and display a nicer table (but more code required)

$i = 0; // initialize row couner

$numcols = odbc_num_fields($result); // determine number of columns

print(""); // start HTML table // PRINT COLUMN HEADINGS

print(""); // start of row

while ($i < $numcols) { $i++; $colname = odbc_field_name($result, $i); print(""); } $i=0; print(""); // end of row // PRINT TABLE DATA

while(odbc_fetch_row($result)) // while there are still rows

{ print(""); // start row w

while ($i < $numcols) { $i++; $tablecell = odbc_result($result, $i); print(""); } print(""); // end

$i = 0; // reset counter

} // end odbc_fetch_row

print("

$colname

$tablecell

");