Download CUBRID PHP Library, extract it and enter the directory, you will find VC6 project file php_cubrid.dsp. Before you open the project, you should do some preparations.
If you don’t install this SDK (It seems that you can no longer download it from Microsoft Download Center for free), you can also use VC6’s default settings. But you may see errors when you compile the extension and have to fix them manually. |
In the VC6 project, you can find $(PHPRC) in Settings->Link->Input->Additional library path |
In the VC6 project, you can find $(PHP5_SRC) in Settings->C/C++->Preprocessor->Additional include directories |
Note: If you build CUBRID PHP Library with PHP 5.3 source code, you need to configure PHP 5.3 on Windows. If you don’t, VC will tell you that it can’t find header file config.w32.h. You can read the wiki page below to get how to configure it.
http://wiki.php.net/internals/windows/stepbystepbuild
1. Open VC6 project, in Build menu, select Set Active Configuration. There are four configurations (Win32 Release_TS, Win32 Release, Win32 Debug_TS and Win32 Debug). Choose what you want, then close the Set Active Project Configuration;
2. Once you complete the properties modification, press the OK button. Then press F7 to compile;
3. As we have built php_cubrid.dll we have to make PHP recognize it as an extension:
a) Inside PHP installation folder create the new folder called cubrid, and copy php_cubrid.dll to cubrid folder. You can also put php_cubrid.dll in %PHPRC%\ext if this directory exists.
b) In php.ini file set the extension_dir variable and add CUBRID PHP Library to extension variable.