From: Zoltan B. <zb...@du...> - 2007-04-24 06:00:15
|
Hello, Malangon Perez írta: > Hello Zoltan, > > Thank you very much for your answer and for DLL. > You're welcome. > But, unfortunately, DLL does not work. I am receiving > the following message: > > C:\php>php -version > PHP Warning: PHP Startup: Invalid library (maybe not > a PHP library) 'libr.dll' in Unknown on line 0 PHP > 5.2.1 (cli) (built: Feb 7 2007 23:11:26) > Copyright (c) 1997-2007 The PHP Group Zend Engine > v2.2.0, Copyright (c) 1998-2007 Zend Technologies > No wonder it's not working, because the RLIB.DLL I sent you is _not_ a PHP DLL. It's only the reporting engine, not the PHP binding. I only needed it for my C program. If you want to have it working under PHP/Win32, you'll have to compile your own with having the PHP development (C headers, etc.) environment installed in the MinGW system. Actually, there might be a problem with compiling it on Windows. The resulting PHP object under bindings/php will also be names RLIB.DLL. I don't know whether the Windows dynamic runtime linker allows a DLL to link to another DLL that has the same name. The PHP object is names rlib.so under POSIX systems but it's allowed, the linker easily handles the kind of dependency that comes from PHP -> extension/rlib.so -> /usr/lib/rlib.so. Bob, it would be better to name the bindings something else than just rlib.so or rlib.dll to avoid such conflicts - it's not yet carved in stone as rlib-1.3.8 is still a development version, right? Upgrading from 1.2.x to 2.0 will require script and API/ABI changes in apps already. Changing it during 2.x would be much harder as API/ABI stability is a must there. > I have seen dependency walker for such DLL and of > course, I have downloaded all needed DLL including > those that you have indicated to me and put them in > PHP folder but not in extensions, because I have > received a message saying that it is not possible to > find dependent DLLs. > > I am not sure which version of MSVCRTD.DLL I must use. > I am using Windows XP SP 2 and Windows 2003 Enterprise > Edition SP 2 and Internet Information Server 6, PHP > 5.2.1. > I don't remember which version of Windows I used to compile it, maybe it was Win2000 or XP SP1. Note the dates below. $ ls -l libr*.dll -rwxr--r-- 1 zozo users 1262264 2005 júl 8 libr.dll -rwxr--r-- 1 zozo users 298904 2005 júl 8 libr-odbc.dll -rwxr--r-- 1 zozo users 112676 2005 júl 8 librpdf.dll > So, I would like to connect to a Microsoft Access 2.0 > Data Base, using a DAO 3.51 which is just compatible. > And of course, I would like to use PHP arrays in order > to generate reports. > > I will appreciate so much your help. > > Thanks in advance, > > Malangon > > > > > > > --- Zoltan Boszormenyi <zb...@du...> wrote: > > >> Malangon Perez írta: >> >>> Please, how to compile RLIB for Windows? >>> I need to know necessary steps and what tools to >>> >> use >> >>> in order to do it. >>> Could you send to me the compiled DLL? >>> >>> >> Here is the compiled stuff. It has three DLLs, >> RPDF, RLIB and RLIB-ODBC, at that time >> only these were working. You may be able to >> compile native PostgreSQL and MySQL >> drivers, too if you have the headers and >> their corresponding native driver DLLs, too. >> >> >>> Best regards, >>> Malangon >>> Best regards, Zoltán Böszörményi |