Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions language/wrappers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 8e2783c965dd78731eff265ccd3b1bfcc6404567 Maintainer: lacatoire Status: ready -->

<reference xml:id="wrappers" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Protocolli e wrapper supportati</title>
<partintro>
<para>
PHP include molti wrapper integrati per vari protocolli in stile URL
da utilizzare con le funzioni del filesystem come <function>fopen</function>,
<function>copy</function>, <function>file_exists</function> e
<function>filesize</function>.
Oltre a questi wrapper, è possibile registrare wrapper personalizzati
utilizzando la funzione <function>stream_wrapper_register</function>.
</para>
<note>
<simpara>
La sintassi URL utilizzata per descrivere un wrapper supporta solo la
sintassi <literal>scheme://...</literal>. Le sintassi <literal>scheme:/</literal>
e <literal>scheme:</literal> non sono supportate.
</simpara>
</note>
</partintro>

&language.wrappers.file;
&language.wrappers.http;
&language.wrappers.ftp;
&language.wrappers.php;
&language.wrappers.compression;
&language.wrappers.data;
&language.wrappers.glob;
&language.wrappers.phar;
&language.wrappers.ssh2;
&language.wrappers.rar;
&language.wrappers.audio;
&language.wrappers.expect;

</reference>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
115 changes: 115 additions & 0 deletions language/wrappers/expect.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 8bc832a464e33122e8129f5a623bd845b69fa7e0 Maintainer: lacatoire Status: ready -->

<refentry xml:id="wrappers.expect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_wrapper">
<refnamediv>
<refname>expect://</refname>
<refpurpose>Flussi di interazione con i processi</refpurpose>
</refnamediv>

<refsect1 role="description"><!-- {{{ -->
&reftitle.description;
<para>
I flussi aperti tramite il wrapper <filename>expect://</filename> forniscono
l'accesso a stdio, stdout e stderr dei processi tramite PTY.
</para>
<note>
<title>Questo wrapper non è abilitato per impostazione predefinita</title>
<simpara>
Per utilizzare il wrapper <filename>expect://</filename>,
è necessario installare l'estensione
<link xlink:href="&url.pecl.package;expect">Expect</link>
disponibile da &link.pecl;.
</simpara>
</note>
<simpara><filename>expect://</filename> (PECL)</simpara>
</refsect1><!-- }}} -->

<refsect1 role="usage"> <!-- {{{ -->
&reftitle.usage;
<itemizedlist>
<listitem><simpara><filename>expect://command</filename></simpara></listitem>
</itemizedlist>
</refsect1> <!-- }}} -->

<refsect1 role="options"><!-- {{{ -->
&reftitle.options;
<para>
<table>
<title>Riepilogo del wrapper</title>
<tgroup cols="2">
<thead>
<row>
<entry>Attributo</entry>
<entry>Supportato</entry>
</row>
</thead>
<tbody>
<row>
<entry>Limitato da <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>No</entry>
</row>
<row>
<entry>Permette la lettura</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Permette la scrittura</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Permette l'aggiunta</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Permette la lettura e scrittura simultanea</entry>
<entry>No</entry>
</row>
<row>
<entry>Supporta <function>stat</function></entry>
<entry>No</entry>
</row>
<row>
<entry>Supporta <function>unlink</function></entry>
<entry>No</entry>
</row>
<row>
<entry>Supporta <function>rename</function></entry>
<entry>No</entry>
</row>
<row>
<entry>Supporta <function>mkdir</function></entry>
<entry>No</entry>
</row>
<row>
<entry>Supporta <function>rmdir</function></entry>
<entry>No</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1> <!-- }}} -->

</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
123 changes: 123 additions & 0 deletions language/wrappers/file.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 0592e6316d3869b49637df29c471097e7bf78592 Maintainer: lacatoire Status: ready -->

<refentry xml:id="wrappers.file" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_wrapper">
<refnamediv>
<refname>file://</refname>
<refpurpose>Accesso al filesystem locale</refpurpose>
</refnamediv>

<refsect1 role="description"><!-- {{{ -->
&reftitle.description;
<para>
<literal>file://</literal> è il wrapper predefinito utilizzato con PHP e
rappresenta il filesystem locale.
Quando viene specificato un percorso relativo (un percorso che non inizia con
<literal>/</literal>, <literal>\</literal>, <literal>\\</literal>, o una
lettera di unità Windows) il percorso fornito verrà applicato rispetto alla
directory di lavoro corrente. In molti casi questa è la directory in cui risiede
lo script, a meno che non sia stata cambiata. Utilizzando la <acronym>CLI</acronym>
<acronym>SAPI</acronym>, per impostazione predefinita è la directory da cui è stato
chiamato lo script.
</para>
<simpara>
Con alcune funzioni, come <function>fopen</function> e
<function>file_get_contents</function>, <literal>include_path</literal>
può essere opzionalmente utilizzato per la ricerca di percorsi relativi.
</simpara>
</refsect1><!-- }}} -->

<refsect1 role="usage"> <!-- {{{ -->
&reftitle.usage;
<itemizedlist>
<listitem><simpara><filename>/path/to/file.ext</filename></simpara></listitem>
<listitem><simpara><filename>relative/path/to/file.ext</filename></simpara></listitem>
<listitem><simpara><filename>fileInCwd.ext</filename></simpara></listitem>
<listitem><simpara><filename>C:/path/to/winfile.ext</filename></simpara></listitem>
<listitem><simpara><filename>C:\path\to\winfile.ext</filename></simpara></listitem>
<listitem><simpara><filename>\\smbserver\share\path\to\winfile.ext</filename></simpara></listitem>
<listitem><simpara><filename>file:///path/to/file.ext</filename></simpara></listitem>
</itemizedlist>
</refsect1> <!-- }}} -->

<refsect1 role="options"><!-- {{{ -->
&reftitle.options;
<para>
<table>
<title>Riepilogo del wrapper</title>
<tgroup cols="2">
<thead>
<row>
<entry>Attributo</entry>
<entry>Supportato</entry>
</row>
</thead>
<tbody>
<row>
<entry>Limitato da <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>No</entry>
</row>
<row>
<entry>Permette la lettura</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Permette la scrittura</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Permette l'aggiunta</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Permette la lettura e scrittura simultanea</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Supporta <function>stat</function></entry>
<entry>Sì</entry>
</row>
<row>
<entry>Supporta <function>unlink</function></entry>
<entry>Sì</entry>
</row>
<row>
<entry>Supporta <function>rename</function></entry>
<entry>Sì</entry>
</row>
<row>
<entry>Supporta <function>mkdir</function></entry>
<entry>Sì</entry>
</row>
<row>
<entry>Supporta <function>rmdir</function></entry>
<entry>Sì</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1> <!-- }}} -->

</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Loading