Hi,
I installed PHP 5.0 on my linux box.
In php.ini, i added this: extension=odbc.so
But i still get the error:"Call to undefined function odbc_connect()" when
trying to run this command:
$connect = odbc_connect ('DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=/mnt/pen1800d/access\newres.mdb', '', '');
In windows, no error.
I thought odbc was integrated in php.
What do i have to install then and what about php.ini?
Thanks 3 24871
Bill wrote: Hi,
I installed PHP 5.0 on my linux box. In php.ini, i added this: extension=odbc.so But i still get the error:"Call to undefined function odbc_connect()" when trying to run this command: $connect = odbc_connect ('DRIVER={Microsoft Access Driver (*.mdb)};DBQ=/mnt/pen1800d/access\newres.mdb', '', '');
In windows, no error. I thought odbc was integrated in php. What do i have to install then and what about php.ini?
The PHP has been compiled without the odbc support or the odbc part has been
split into another package which you need to install.
//Aho
Thanks for replying.
I downloaded the file PHP-5.1.2 (tar.gz).
How can i know whether odbc module is included?
Can you tell me the option in order to compile php with odbc? (something
like --odbc ?)?
Thanks
"J.O. Aho" <us**@example.net> schreef in bericht
news:46************@individual.net... Bill wrote: Hi,
I installed PHP 5.0 on my linux box. In php.ini, i added this: extension=odbc.so But i still get the error:"Call to undefined function odbc_connect()" when trying to run this command: $connect = odbc_connect ('DRIVER={Microsoft Access Driver (*.mdb)};DBQ=/mnt/pen1800d/access\newres.mdb', '', '');
In windows, no error. I thought odbc was integrated in php. What do i have to install then and what about php.ini?
The PHP has been compiled without the odbc support or the odbc part has been split into another package which you need to install.
//Aho
root@mich work/php-5.1.2# ./configure --help |g odbc
--with-custom-odbc[=DIR]
have some odbc.h in your include dirs.
CUSTOM_ODBC_LIBS="-ldblib -lodbc"
--with-iodbc[=DIR] Include iODBC support. DIR is the iODBC base
--with-pdo-odbc=flavour,dir
--with-pdo-odbc=unixODBC
--with-pdo-odbc=generic,dir,libname,ldflags,cflags
named pdo_odbc.so This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Randell D. |
last post by:
Folks,
I feel like pulling my hair out - I tried unsuccessfully over the past few
days to install ImagMagick but because of version conflicts and missing
libraries I had to give up. I originally...
|
by: obi wan kenobi |
last post by:
i've used the Amazon PHP api for several months now to pull amazon data into
my affiliate site - but recently i'm starting to get "call to undefined
function" errors
" Fatal error: Call to...
|
by: xcomm |
last post by:
I tried to create some images with php and gd and get always
Call to undefined function imagejpeg()
or
Call to undefined function imagepng()
PHP was build with --with-gd --with-zlib but I...
|
by: gc |
last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this
before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm
running latest versions of Apache, PHP and...
|
by: annie |
last post by:
Can anyone point me in the right direction here?
I've got this little image script
<?php
$im = ImageCreate(200,200);
$white = ImageColorAllocate($im,oxFF,oxFF,oxFF);
$black =...
|
by: franscescomoi |
last post by:
Hi.
On PHP 4.3.10 on Linux I try to:
------
$im = imagecreate(400, 30);
$black = imagecolorallocate($im, 0, 0, 0);
imagettftext($image, 20, -3, 10, 20, $black, 'Arial.ttf', 'Test');
-------
...
|
by: muelli75 |
last post by:
Hi!
Im getting insane by solving a problem ....
I try to define a function which uses a code-snippet from another file.
My base are the codes from the great book "WebDataBase-Book by H....
|
by: drewmania001 |
last post by:
i've read various info on the web including the following
http://php.mirrors.ilisys.com.au/manual/en/ref.mysqli.php
mySQL Version 4.1.16
PHP Version 5.1.2
with Zend Engine v2.1.0
OS Windows...
|
by: Cruella DeVille |
last post by:
I'm writing a class to handle reading/writing from/to files like this
(shortened)
lass FileIO{
private $filename;
private $mode;
private $filePointer;
private $dictionary;
public function...
|
by: java |
last post by:
Hey there,
I just removed an elderly PHP4-Installation from my Windows-Box and
installed PHP 5.2.1. I used the PHP4-Module as local batchfile-
interpreter by
E:\ersDHCP>php ./extractLog.php
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |