Skip to content
Merged
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
193 changes: 193 additions & 0 deletions language/wrappers/audio.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: c62ef37e0d58067b393a6cf3a14aefed90bc0bff Maintainer: DavideFarina2010 Status: ready -->

<refentry xml:id="wrappers.audio" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_wrapper">
<refnamediv>
<refname>ogg://</refname>
<refpurpose>Stream audio</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<para>
I file aperti in lettura tramite il wrapper <filename>ogg://</filename>
vengono trattati come audio compresso codificato con il codec <literal>OGG/Vorbis</literal>.
Allo stesso modo, i file aperti in scrittura o in aggiunta tramite il wrapper
<filename>ogg://</filename> vengono scritti come dati audio compressi.
<function>stream_get_meta_data</function>, quando viene usata su un file <literal>OGG/Vorbis</literal>
aperto in lettura, restituisce vari dettagli sullo stream,
tra cui il tag <parameter>vendor</parameter>, gli eventuali
<parameter>comments</parameter> inclusi, il numero di
<parameter>channels</parameter>, la frequenza di campionamento <parameter>rate</parameter>
e l'intervallo della frequenza di codifica descritto da:
<parameter>bitrate_lower</parameter>, <parameter>bitrate_upper</parameter>,
<parameter>bitrate_nominal</parameter> e <parameter>bitrate_window</parameter>.
</para>

<simpara><filename>ogg://</filename> (PECL)</simpara>
<note>
<title>Questo wrapper non è abilitato per impostazione predefinita</title>
<simpara>
Per utilizzare il wrapper <filename>ogg://</filename>
deve essere installata l'estensione
<link xlink:href="&url.pecl.package;oggvorbis">OGG/Vorbis</link>
disponibile su &link.pecl;.
</simpara>
</note>
</refsect1>

<refsect1 role="usage">
&reftitle.usage;
<itemizedlist>
<listitem><simpara><filename>ogg://soundfile.ogg</filename></simpara></listitem>
<listitem><simpara><filename>ogg:///path/to/soundfile.ogg</filename></simpara></listitem>
<listitem><simpara><filename>ogg://http://www.example.com/path/to/soundstream.ogg</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 la Scrittura Simultanee</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>
<!-- FIXME: This should not be here! context.audio... -->
<para>
<table>
<title>Opzioni del contesto</title>
<tgroup cols="3">
<thead>
<row>
<entry>Nome</entry>
<entry>Utilizzo</entry>
<entry>Predefinito</entry>
<entry>Modalità</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>pcm_mode</literal></entry>
<entry>
Codifica PCM da applicare durante la lettura, una tra:
<constant>OGGVORBIS_PCM_U8</constant>, <constant>OGGVORBIS_PCM_S8</constant>,
<constant>OGGVORBIS_PCM_U16_BE</constant>, <constant>OGGVORBIS_PCM_S16_BE</constant>,
<constant>OGGVORBIS_PCM_U16_LE</constant> e <constant>OGGVORBIS_PCM_S16_LE</constant>.
(8 o 16 bit, con segno o senza segno, <literal>endian</literal> big o little)
</entry>
<entry>OGGVORBIS_PCM_S16_LE</entry>
<entry>Lettura</entry>
</row>
<row>
<entry><literal>rate</literal></entry>
<entry>
Frequenza di campionamento dei dati in ingresso, espressa in Hz
</entry>
<entry>44100</entry>
<entry>Scrittura/Aggiunta</entry>
</row>
<row>
<entry><literal>bitrate</literal></entry>
<entry>
Se indicato come intero, il bitrate fisso con cui codificare. (da 16000 a 131072)
Se indicato come float, la qualità del bitrate variabile da usare. (da -1.0 a 1.0)
</entry>
<entry>128000</entry>
<entry>Scrittura/Aggiunta</entry>
</row>
<row>
<entry><literal>channels</literal></entry>
<entry>
Il numero di canali audio da codificare, tipicamente 1 (Mono) o 2 (Stereo).
Può arrivare fino a 16.
</entry>
<entry>2</entry>
<entry>Scrittura/Aggiunta</entry>
</row>
<row>
<entry><literal>comments</literal></entry>
<entry>
Un array di valori stringa da codificare nell'intestazione della traccia.
</entry>
<entry/>
<entry>Scrittura/Aggiunta</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
-->

158 changes: 158 additions & 0 deletions language/wrappers/ftp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: c62ef37e0d58067b393a6cf3a14aefed90bc0bff Maintainer: DavideFarina2010 Status: ready -->

<refentry xml:id="wrappers.ftp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_wrapper">
<refnamediv>
<refname>ftp://</refname>
<refname>ftps://</refname>
<refpurpose>Accesso a URL FTP(s)</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<para>
Permette l'accesso in lettura ai file esistenti e la creazione di nuovi file
tramite FTP. Se il server non supporta la modalità passiva di ftp, la
connessione fallirà.
</para>
<simpara>
È possibile aprire i file per la lettura o per la scrittura, ma non per entrambe
contemporaneamente. Se il file remoto esiste già sul server ftp
e si tenta di aprirlo in scrittura senza aver specificato
l'opzione di contesto <literal>overwrite</literal>, la connessione
fallirà. Se è necessario sovrascrivere file esistenti tramite ftp,
specificare l'opzione <literal>overwrite</literal> nel contesto
e aprire il file in scrittura. In alternativa, è possibile
usare l'<link linkend="ref.ftp">estensione FTP</link>.
</simpara>
<simpara>
Se è stata impostata la direttiva <link linkend="ini.from">from</link>
in &php.ini;, il suo valore verrà inviato come password
per l'accesso FTP anonimo.
</simpara>
</refsect1>

<refsect1 role="usage">
&reftitle.usage;
<itemizedlist>
<listitem><simpara><filename>ftp://example.com/pub/file.txt</filename></simpara></listitem>
<listitem><simpara><filename>ftp://user:password@example.com/pub/file.txt</filename></simpara></listitem>
<listitem><simpara><filename>ftps://example.com/pub/file.txt</filename></simpara></listitem>
<listitem><simpara><filename>ftps://user:password@example.com/pub/file.txt</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>Sì</entry>
</row>
<row>
<entry>Permette la Lettura</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Permette la Scrittura</entry>
<entry>Sì (nuovi file/file esistenti con <parameter>overwrite</parameter>)</entry>
</row>
<row>
<entry>Permette l'Aggiunta</entry>
<entry>Sì</entry>
</row>
<row>
<entry>Permette la Lettura e la Scrittura Simultanee</entry>
<entry>No</entry>
</row>
<row>
<entry>Supporta <function>stat</function></entry>
<entry>
<function>filesize</function>, <function>filemtime</function>,
<function>filetype</function>, <function>file_exists</function>,
<function>is_file</function> e <function>is_dir</function>
soltanto.
</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>

<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
FTPS è supportato solo quando l'estensione <link linkend="book.openssl">openssl</link>
è abilitata.
</para>
<simpara>
Se il server non supporta SSL, la connessione ripiega sul normale
ftp non cifrato.
</simpara>
</note>
<note>
<title>Aggiunta</title>
<simpara>
I file possono essere aggiunti in coda tramite il wrapper URL <literal>ftp://</literal>.
</simpara>
</note>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><xref linkend="context.ftp" /></member>
</simplelist>
</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
Loading