sforkowany z mirror/friendica
21 wiersze
3.8 KiB
HTML
21 wiersze
3.8 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|||
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Chapter 1. Introduction</title><link rel="stylesheet" href="docbook.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><link rel="start" href="index.html" title="PHP Secure Communications Library" /><link rel="up" href="index.html" title="PHP Secure Communications Library" /><link rel="prev" href="index.html" title="PHP Secure Communications Library" /><link rel="next" href="math.html" title="Chapter 2. Math" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 1. Introduction</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="math.html">Next</a></td></tr></table><hr /></div><div class="chapter" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="intro"></a>Chapter 1. Introduction</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="intro.html#intro_intro">1.1. Who should use phpseclib</a></span></dt><dt><span class="section"><a href="intro.html#intro_usage">1.2. Using phpseclib</a></span></dt></dl></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="intro_intro"></a>1.1. Who should use phpseclib</h2></div></div></div><p>
|
|||
|
Although many of the features this library implements are implemented in PHP via optional extensions, what are
|
|||
|
you, as a developer, going to do when a user tries to run your software on a host which, coincidentally, doesn't
|
|||
|
happen to have that optional extension installed? You could, flat-out, tell that user to look for another
|
|||
|
software package that does work on their server (or to get another host, or whatever), which is liable to leave
|
|||
|
a bad impression on the user, or you could use a library like this - a library that uses those optional
|
|||
|
extensions if they're available and falls back on an internal PHP implementation if they're not.
|
|||
|
</p><p>
|
|||
|
Another advantage of using this library over optional PHP extensions is that you, as a developer, may find this
|
|||
|
libraries API easier to use then extensions API.
|
|||
|
</p></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="intro_usage"></a>1.2. Using phpseclib</h2></div></div></div><p>
|
|||
|
This library is written using the same conventions that libraries in the PHP Extension and Application Repository (PEAR)
|
|||
|
have been written in. In particular, this library expects to be in your <code class="code">include_path</code>:
|
|||
|
</p><pre class="programlisting"><?php
|
|||
|
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');
|
|||
|
|
|||
|
include('Net/SSH2.php');
|
|||
|
?></pre></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="index.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="math.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">PHP <span class="red">Secure</span> Communications Library </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 2. Math</td></tr></table></div></body></html>
|