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.php

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

manual_header();
?>
<div>
  <div class="info"><h1>A simple tutorial</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="tutorial.requirements.php">What do I need?</a></li><li><a href="tutorial.firstpage.php">Your first PHP-enabled page</a></li><li><a href="tutorial.useful.php">Something Useful</a></li><li><a href="tutorial.forms.php">Dealing with Forms</a></li><li><a href="tutorial.oldcode.php">Using old code with new versions of PHP</a></li><li><a href="tutorial.whatsnext.php">What's next?</a></li></ul>
</div>

  <p class="para">
   Here we would like to show the very basics of PHP in a short, simple
   tutorial. This text only deals with dynamic web page creation with
   PHP, though PHP is not only capable of creating web pages. See
   the section titled <a href="intro-whatcando.php" class="link">What can PHP
   do</a> for more information.
  </p>
  <p class="para">
   PHP-enabled web pages are treated just like regular HTML pages and
   you can create and edit them the same way you normally create
   regular HTML pages.
  </p>

 

 

 
  
 

 
 
 
 </div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites