Re: How do I compiling MySQL Clients on Windows

From: Date: Sat, 05 Jul 2003 01:19:32 +0000
Subject: Re: How do I compiling MySQL Clients on Windows
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-11220@lists.php.net to get a copy of this message
Whats the error? I got PHP5 to work, except I still have a problem with my configuration. My PHP files that use $PHP_SELF? does not work... along with other PHP functions. I have yet to try MySQL on PHP5 because I cant use any of my scripts that use MySQL! "Seung Hwan Kang" <sk33@uow.edu.au> wrote in message news:20030704104246.26265.qmail@pb1.pair.com... > Help!!! > > I just installed PHP 5.0.0 Beta 1 with Apache on W2K SP4, and I also > read though the postings. The problem is that we have to use mysql > clients which comes with mysql to use PHP. I read following mysql docs, > and I don't have any clue, anyone? > > ----------------------------------------------------------------------- > 2.6.2.6 Compiling MySQL Clients on Windows > > In your source files, you should include `windows.h' before you include > `mysql.h': > > #if defined(_WIN32) || defined(_WIN64) > #include <windows.h> > #endif > #include <mysql.h> > > You can either link your code with the dynamic `libmysql.lib' library, > which is just a wrapper to load in `libmysql.dll' on demand, or link > with the static `mysqlclient.lib' library. > > Note that as the mysqlclient libraries are compiled as threaded > libraries, you should also compile your code to be multi-threaded! > ------------------------------------------------------------------------ > > PHP 5.0x installation on W2K (apache module) > > Here is my prog. and conf. > > php-5.0.0b1-Win32.zip > mysql-4.0.13-win.zip > apache_20.046-win32-x86-no_src.msi > > 1. edit httpd.conf > > LoadModule php5_module C:\php\sapi\php4apache2.dll > > # > # To use PHP scripts > # > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > 2. copy c:\php\php4ts.dll to c:\winnt\system32 > > 3. edit c:\winnt\php.ini > > ; Windows: "\path1;\path2" > include_path = ".;c:\php\dlls" > > ; Directory in which the loadable extensions (modules) reside. > extension_dir = "c:\php\extensions\" > > upload_tmp_dir = c:\tmp > > session.save_path = c:\tmp >

« previous php.install (#11220) next »