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/ftp.constants.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/book.ftp.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'ftp.constants.php',
   
1 => 'Predefined Constants',
  ),
 
'up' =>
  array (
   
0 => 'book.ftp.php',
   
1 => 'FTP',
  ),
 
'prev' =>
  array (
   
0 => 'ftp.resources.php',
   
1 => 'Resource Types',
  ),
 
'next' =>
  array (
   
0 => 'ftp.examples.php',
   
1 => 'Examples',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <h1>Predefined Constants</h1>

 <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
 <dl>

  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_ASCII</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

   
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_TEXT</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

   
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_BINARY</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

   
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_IMAGE</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

   
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_TIMEOUT_SEC</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <p class="para">
     See <a href="function.ftp-set-option.php" class="function">ftp_set_option()</a> for information.
    </p>
   </dd>

 
 </dl>

 <p class="para">
  The following constants were introduced in PHP 4.3.0.
 </p>
 <dl>

  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_AUTOSEEK</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <p class="para">
     See <a href="function.ftp-set-option.php" class="function">ftp_set_option()</a> for information.
    </p>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_AUTORESUME</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <p class="para">
     Automatically determine resume position and start position for GET and PUT requests
     (only works if FTP_AUTOSEEK is enabled)
    </p>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_FAILED</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <p class="para">
     Asynchronous transfer has failed
    </p>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_FINISHED</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <p class="para">
     Asynchronous transfer has finished
    </p>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">FTP_MOREDATA</tt></b>
    (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <p class="para">
     Asynchronous transfer is still active
    </p>
   </dd>

 
 </dl>

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