Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 3601

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Connecting to MS SQL 6.x+ via Openlink/PHP/ODBC mini-HOWTO: PHP</TITLE>
 <LINK HREF="MSSQL6-Openlink-PHP-ODBC-4.html" REL=next>
 <LINK HREF="MSSQL6-Openlink-PHP-ODBC-2.html" REL=previous>
 <LINK HREF="MSSQL6-Openlink-PHP-ODBC.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="MSSQL6-Openlink-PHP-ODBC-4.html">Next</A>
<A HREF="MSSQL6-Openlink-PHP-ODBC-2.html">Previous</A>
<A HREF="MSSQL6-Openlink-PHP-ODBC.html#toc3">Contents</A>
<HR>
<H2><A NAME="s3">3. PHP</A></H2>

<P>Now we have Openlink and can go to PHP compilation. Note for this
version, PHP 3.0.10 or above is required to make things work.
<UL>
<LI>From 
<A HREF="http://www.php.net/">http://www.php.net</A>, download
<CODE>php-3.0.11.tar.gz</CODE></LI>
<LI> Perform the following steps:
<BLOCKQUOTE><CODE>
<PRE>
gzip -dc php-3.0.11.tar.gz|tar -xof -

cd php-3.0.11

./configure --with-openlink (--with-mysql --with-gd=/usr/local/gd1.3 --enable-track-vars)

    NOTE: My configuration is to run PHP as CGI mode, support mysql, 
          as well. Your configuration may be different.

make --silent

    NOTE: Don't mind if there are warning messages.

make install
</PRE>
</CODE></BLOCKQUOTE>

These will install php executable into <CODE>/usr/local/bin</CODE>.
Before you execute php, copy the library files under
<CODE>/usr/local/openlink/odbcsdk/lib</CODE> into <CODE>/usr/lib</CODE> to
make it easier for php to find openlink libraries (I know there are
better methods).</LI>
</UL>
<P>
<P>
<HR>
<A HREF="MSSQL6-Openlink-PHP-ODBC-4.html">Next</A>
<A HREF="MSSQL6-Openlink-PHP-ODBC-2.html">Previous</A>
<A HREF="MSSQL6-Openlink-PHP-ODBC.html#toc3">Contents</A>
</BODY>
</HTML>