downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/faq.obtaining.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/faq.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'faq.obtaining.php',
   
1 => 'Obtaining PHP',
  ),
 
'up' =>
  array (
   
0 => 'faq.php',
   
1 => 'FAQ: Frequently Asked Questions',
  ),
 
'prev' =>
  array (
   
0 => 'faq.mailinglist.php',
   
1 => 'Mailing lists',
  ),
 
'next' =>
  array (
   
0 => 'faq.databases.php',
   
1 => 'Database issues',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <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 SVN
      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></ol>
   <dl>
    <dt><strong>
     <p class="para">Where can I obtain PHP?</p>
    </strong></dt>
    <dd><a name="faq.obtaining.where"></a>
     <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">&raquo; http://www.php.net/</a>.
      You can also use anonymous SVN to get the absolute latest
      version of the source. For more information, go to
      <a href="http://php.net/svn.php" class="link external">&raquo; http://php.net/svn.php</a>.
     </p>
    </dd>
   </dl>

   <dl>
    <dt><strong>
     <p class="para">Are pre-compiled binary versions available?</p>
    </strong></dt>
    <dd><a name="faq.obtaining.precompiled"></a>
     <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">&raquo; Downloads</a> page, for Linux
      binaries, please visit your distribution&#039;s website.
     </p>
    </dd>
   </dl>

   <dl>
    <dt><strong>
     <p class="para">
      Where can I get libraries needed to compile some of
      the optional PHP extensions?
     </p>
    </strong></dt>
    <dd><a name="faq.obtaining.optional"></a>
     <p class="para">
      </p><blockquote><p><b class="note">Note</b>:
       <span class="simpara">
        Those marked with * are not thread-safe libraries, and
        should not be used with PHP as a server module in the multi-threaded
        Windows web servers (IIS, Netscape). This does not matter in Unix
        environments, yet.
       </span>
      </p></blockquote><p>
     </p>
     <p class="para">
      </p><ul class="itemizedlist">
       <li class="listitem">
        <span class="simpara">
         <a href="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/" class="link external">&raquo; LDAP (Unix)</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://developer.netscape.com/tech/directory/downloads.html" class="link external">&raquo; 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">&raquo; free LDAP server</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://www.sleepycat.com/" class="link external">&raquo; 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">&raquo; SNMP* (Unix): </a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://www.libgd.org/" class="link external">&raquo; GD* (Unix/Win)</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://www.hughes.com.au/" class="link external">&raquo; mSQL* (Unix)</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://www.postgresql.org/" class="link external">&raquo; PostgreSQL (Unix)</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="ftp://ftp.cac.washington.edu/imap/" class="link external">&raquo; IMAP* (Win/Unix)</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://www.sybase.com/" class="link external">&raquo; Sybase-CT* (Linux, libc5)</a> :
         Available locally.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://www.freetype.org/" class="link external">&raquo; FreeType (libttf):</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://www.zlib.net/" class="link external">&raquo; ZLib (Unix/Win32)</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://www.jclark.com/xml/expat.html" class="link external">&raquo; 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">&raquo; PDFLib</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://mcrypt.sourceforge.net/" class="link external">&raquo; mcrypt</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://mhash.sourceforge.net/" class="link external">&raquo; mhash</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/" class="link external">&raquo; t1lib</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://dmalloc.com/" class="link external">&raquo; dmalloc</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://aspell.sourceforge.net/" class="link external">&raquo; aspell</a>.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <a href="http://cnswww.cns.cwru.edu/~chet/readline/rltop.html" class="link external">&raquo; readline</a>.
        </span>
       </li>
      </ul><p>
     </p>
    </dd>
   </dl>
 
   <dl>
    <dt><strong>
     <p class="para">How do I get these libraries to work?</p>
    </strong></dt>
    <dd><a name="faq.obtaining.how"></a>
     <p class="para">
      You will need to follow instructions provided with the library. Some of
      these libraries are detected automatically when you run the &#039;configure&#039;
      script of PHP (such as the GD library), and others you will have to
      enable using &#039;<i>--with-EXTENSION</i>&#039; options to
      &#039;<i>configure</i>&#039;. Run
      &#039;<i>configure --help</i>&#039; for a listing of these.    
     </p>
    </dd>
   </dl>
   <dl>
    <dt><strong>
     <p class="para">
      I got the latest version of the PHP source code from the SVN
      repository on my Windows machine, what do I need to compile it?
     </p>
    </strong></dt>
    <dd><a name="faq.obtaining.compileNT"></a>
     <p class="para">
      See the manual section about
      <a href="install.windows.building.php" class="link">building PHP from
      source on Windows</a>.
    </p>
    </dd>
   </dl>
   <dl>
    <dt><strong>
     <p class="para">Where do I find the Browser Capabilities File?</p>
    </strong></dt>
    <dd><a name="faq.obtaining.browscap"></a>
     <p class="para">
      You can find a <var class="filename">browscap.ini</var> file at
      <a href="http://browsers.garykeith.com/downloads.asp" class="link external">&raquo; http://browsers.garykeith.com/downloads.asp</a>.
     </p>
    </dd>
   </dl>
  </div>
 </div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites