<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Obtaining PHP</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="faq.mailinglist.html">Mailing lists</a></div> <div class="next" style="text-align: right; float: right;"><a href="faq.databases.html">Database issues</a></div> <div class="up"><a href="faq.html">FAQ</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="faq.obtaining" class="chapter"> <h1>Obtaining PHP</h1> <p class="para"> This section has details about PHP download locations, and OS issues. </p> <div class="qandaset"><ol class="qandaset_questions"><li><a href="#faq.obtaining.where"> Where can I obtain PHP? </a></li><li><a href="#faq.obtaining.precompiled"> Are pre-compiled binary versions available? </a></li><li><a href="#faq.obtaining.optional"> Where can I get libraries needed to compile some of the optional PHP extensions? </a></li><li><a href="#faq.obtaining.how"> How do I get these libraries to work? </a></li><li><a href="#faq.obtaining.compilent"> I got the latest version of the PHP source code from the Git repository on my Windows machine, what do I need to compile it? </a></li><li><a href="#faq.obtaining.browscap"> Where do I find the Browser Capabilities File? </a></li><li><a href="#faq.obtaining.threadsafety"> What does thread safety mean when downloading PHP? </a></li></ol></div> <dl class="qandaentry" id="faq.obtaining.where"> <dt><strong> Where can I obtain PHP? </strong></dt> <dd class="answer"> <p class="para"> You can download PHP from any of the members of the PHP network of sites. These can be found at <a href="http://www.php.net/" class="link external">» http://www.php.net/</a>. You can also use anonymous Git to get the absolute latest version of the source. For more information, go to <a href="http://www.php.net/git.php" class="link external">» http://www.php.net/git.php</a>. </p> </dd> </dl> <dl class="qandaentry" id="faq.obtaining.precompiled"> <dt><strong> Are pre-compiled binary versions available? </strong></dt> <dd class="answer"> <p class="para"> We only distribute precompiled binaries for Windows systems, as we are not able to compile PHP for every major Linux/Unix platform with every extension combination. Also note, that many Linux distributions come with PHP built in these days. Windows binaries can be downloaded from our <a href="http://www.php.net/downloads.php" class="link external">» Downloads</a> page, for Linux binaries, please visit your distribution's website. </p> </dd> </dl> <dl class="qandaentry" id="faq.obtaining.optional"> <dt><strong> Where can I get libraries needed to compile some of the optional PHP extensions? </strong></dt> <dd class="answer"> <p class="para"> <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara"> Those marked with a * are to the best of our knowledge not thread safe; they are not recommended for use in a multi-threaded environment. </span> </p></blockquote> </p> <p class="para"> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> <a href="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/" class="link external">» LDAP (Unix)</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.mozilla.org/directory/" class="link external">» LDAP (Unix/Win)</a> : Mozilla Directory (LDAP) SDK </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.bind9.net/download-openldap/" class="link external">» free LDAP server</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.sleepycat.com/" class="link external">» Berkeley DB2 (Unix/Win)</a> : http://www.sleepycat.com/. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.net-snmp.org/" class="link external">» SNMP* (Unix): </a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.libgd.org/" class="link external">» GD (Unix/Win)</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.hughes.com.au/" class="link external">» mSQL* (Unix)</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.postgresql.org/" class="link external">» PostgreSQL (Unix)</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="ftp://ftp.cac.washington.edu/imap/" class="link external">» IMAP* (Win/Unix)</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.sybase.com/" class="link external">» Sybase-CT* (Linux, libc5)</a> : Available locally. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.freetype.org/" class="link external">» FreeType (libttf):</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.zlib.net/" class="link external">» ZLib (Unix/Win32)</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.jclark.com/xml/expat.html" class="link external">» expat XML parser (Unix/Win32)</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://www.pdflib.com/products/pdflib-family/" class="link external">» PDFLib</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://mcrypt.sourceforge.net/" class="link external">» mcrypt</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://mhash.sourceforge.net/" class="link external">» mhash</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/" class="link external">» t1lib</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://dmalloc.com/" class="link external">» dmalloc</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://aspell.net/" class="link external">» aspell</a>. </span> </li> <li class="listitem"> <span class="simpara"> <a href="http://cnswww.cns.cwru.edu/~chet/readline/rltop.html" class="link external">» readline</a>. </span> </li> </ul> </p> </dd> </dl> <dl class="qandaentry" id="faq.obtaining.how"> <dt><strong> How do I get these libraries to work? </strong></dt> <dd class="answer"> <p class="para"> You will need to follow instructions provided with the library. Some of these libraries are detected automatically when you run the 'configure' script of PHP (such as the GD library), and others you will have to enable using '<em>--with-EXTENSION</em>' options to '<em>configure</em>'. Run '<em>configure --help</em>' for a listing of these. </p> </dd> </dl> <dl class="qandaentry" id="faq.obtaining.compilent"> <dt><strong> I got the latest version of the PHP source code from the Git repository on my Windows machine, what do I need to compile it? </strong></dt> <dd class="answer"> <p class="para"> See the manual section about <a href="install.windows.building.html" class="link">building PHP from source on Windows</a>. </p> </dd> </dl> <dl class="qandaentry" id="faq.obtaining.browscap"> <dt><strong> Where do I find the Browser Capabilities File? </strong></dt> <dd class="answer"> <p class="para"> You can find a <var class="filename">browscap.ini</var> file at <a href="http://tempdownloads.browserscap.com/" class="link external">» http://tempdownloads.browserscap.com/</a>. </p> </dd> </dl> <dl class="qandaentry" id="faq.obtaining.threadsafety"> <dt><strong> What does thread safety mean when downloading PHP? </strong></dt> <dd class="answer"> <p class="para"> Thread Safety means that binary can work in a multithreaded webserver context, such as Apache 2 on Windows. Thread Safety works by creating a local storage copy in each thread, so that the data won't collide with another thread. </p> <p class="para"> So what do I choose? If you choose to run PHP as a CGI binary, then you won't need thread safety, because the binary is invoked at each request. For multithreaded webservers, such as IIS5 and IIS6, you should use the threaded version of PHP. </p> </dd> </dl> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="faq.mailinglist.html">Mailing lists</a></div> <div class="next" style="text-align: right; float: right;"><a href="faq.databases.html">Database issues</a></div> <div class="up"><a href="faq.html">FAQ</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>