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/function.main.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'function.main.php',
   
1 => 'main',
  ),
 
'up' =>
  array (
   
0 => 'ref.info.php',
   
1 => 'PHP Options/Info Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.magic-quotes-runtime.php',
   
1 => 'magic_quotes_runtime',
  ),
 
'next' =>
  array (
   
0 => 'function.memory-get-peak-usage.php',
   
1 => 'memory_get_peak_usage',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.main" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">main</h1>
  <p class="refpurpose"><span class="refname">main</span> &mdash; <span class="dc-title">Dummy for <b>main()</b></span></p>

 </div>

 <a name="function.main.description"></a><div class="refsect1 description">
  <h3 class="title">Description</h3>
  <p class="para">
   There is no function named <b>main()</b> except
   in the PHP source.  In PHP 4.3.0, a new type of error handling
   in the PHP source (php_error_docref) was introduced.  One feature
   is to provide links to a manual page in PHP error messages when
   the PHP directives <a href="errorfunc.configuration.php#ini.html-errors" class="link">html_errors</a>
   (on by default) and <a href="errorfunc.configuration.php#ini.docref-root" class="link">docref_root</a>
   (on by default until PHP 4.3.2) are set.
  </p>
  <p class="para">
   Sometimes error messages refer to a manual page for the function
   <b>main()</b> which is why this page exists.   If you
   discover such a reference, please
   <a href="http://bugs.php.net/" class="link external">&raquo; file a bug report</a>, indicating
   the PHP function caused the error that linked to <b>main()</b>
   and it will be fixed and properly documented.
  </p>
  <p class="para">
   </p><table class="doctable table">
    <caption><b>Known errors that point to <b>main()</b></b></caption>
   
     <thead valign="middle">
      <tr valign="middle">
       <th>Function name</th>
       <th>No longer points here as of</th>
      </tr>

     </thead>

     <tbody valign="middle" class="tbody">
      <tr valign="middle">
       <td align="left"><a href="function.include.php" class="function">include()</a></td>
       <td align="left">5.1.0</td>
      </tr>

      <tr valign="middle">
       <td align="left"><a href="function.include-once.php" class="function">include_once()</a></td>
       <td align="left">5.1.0</td>
      </tr>

      <tr valign="middle">
       <td align="left"><a href="function.require.php" class="function">require()</a></td>
       <td align="left">5.1.0</td>
      </tr>

      <tr valign="middle">
       <td align="left"><a href="function.require-once.php" class="function">require_once()</a></td>
       <td align="left">5.1.0</td>
      </tr>

     </tbody>
   
   </table>
<p>
  </p>
 </div>


 <a name="function.main.seealso"></a><div class="refsect1 seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   </p><ul class="simplelist">
    <li class="member"><a href="errorfunc.configuration.php#ini.html-errors" class="link">html_errors</a></li>
    <li class="member"><a href="errorfunc.configuration.php#ini.display-errors" class="link">display_errors</a></li>
   </ul><p>
  </p>
 </div>


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