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/tutorial.requirements.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/tutorial.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'tutorial.requirements.php',
   
1 => 'What do I need?',
  ),
 
'up' =>
  array (
   
0 => 'tutorial.php',
   
1 => 'A simple tutorial',
  ),
 
'prev' =>
  array (
   
0 => 'tutorial.php',
   
1 => 'A simple tutorial',
  ),
 
'next' =>
  array (
   
0 => 'tutorial.firstpage.php',
   
1 => 'Your first PHP-enabled page',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="tutorial.requirements" class="section">
   <div class="info"><h1 class="title">What do I need?</h1></div>
   <p class="para">
    In this tutorial we assume that your server has activated support
    for PHP and that all files ending in <var class="filename">.php</var>
    are handled by PHP. On most servers, this is the default extension
    for PHP files, but ask your server administrator to be sure. If
    your server supports PHP, then you do not need to do anything. Just
    create your <var class="filename">.php</var> files, put them in your
    web directory and the server will automatically parse them for you.
    There is no need to compile anything nor do you need to install
    any extra tools. Think of these PHP-enabled files as simple HTML
    files with a whole new family of magical tags that let you do all
    sorts of things.  Most web hosts offer PHP support, but if your
    host does not, consider reading the <a href="http://www.php.net/links.php" class="link external">&raquo;
    PHP Links</a> section for resources on finding PHP enabled
    web hosts.
   </p>
   <p class="para">
    Let us say you want to save precious bandwidth and develop locally. 
    In this case, you will want to install a web server, such as
    <a href="http://httpd.apache.org/" class="link external">&raquo; Apache</a>, and of course
    <a href="http://www.php.net/downloads.php" class="link external">&raquo; PHP</a>. You will most likely
    want to install a database as well, such as
    <a href="http://dev.mysql.com/doc/" class="link external">&raquo; MySQL</a>.
   </p>
   <p class="para">
    You can either install these individually or choose a simpler way. Our
    manual has <a href="install.php" class="link">installation instructions for
    PHP</a> (assuming you already have some web server set up). In case
    you have problems with installing PHP yourself, we would suggest you ask
    your questions on our <a href="http://www.php.net/mailing-lists.php" class="link external">&raquo; installation
    mailing list</a>. If you choose to go on the simpler route, then
    <a href="http://www.hotscripts.com/PHP/Software_and_Servers/Installation_Kits/" class="link external">&raquo; locate a pre-configured package</a>
    for your operating system,  which automatically installs all of these
    with just a few mouse clicks. It is easy to setup a web server with PHP
    support on any operating system, including MacOSX, Linux and Windows.
    On Linux, you may find <a href="http://www.rpmfind.net/" class="link external">&raquo; rpmfind</a> and
    <a href="http://rpm.pbone.net/" class="link external">&raquo; PBone</a> helpful for
    locating RPMs. You may also want to visit <a href="http://www.apt-get.org/" class="link external">&raquo; apt-get</a> to find packages for Debian.
   </p>
  </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites