|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- EN-Revision: 0592e6316d3869b49637df29c471097e7bf78592 Maintainer: lacatoire Status: ready --> |
| 3 | + |
| 4 | +<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"> |
| 5 | + <refnamediv> |
| 6 | + <refname>file://</refname> |
| 7 | + <refpurpose>Accesso al filesystem locale</refpurpose> |
| 8 | + </refnamediv> |
| 9 | + |
| 10 | + <refsect1 role="description"><!-- {{{ --> |
| 11 | + &reftitle.description; |
| 12 | + <para> |
| 13 | + <literal>file://</literal> è il wrapper predefinito utilizzato con PHP e |
| 14 | + rappresenta il filesystem locale. |
| 15 | + Quando viene specificato un percorso relativo (un percorso che non inizia con |
| 16 | + <literal>/</literal>, <literal>\</literal>, <literal>\\</literal>, o una |
| 17 | + lettera di unità Windows) il percorso fornito verrà applicato rispetto alla |
| 18 | + directory di lavoro corrente. In molti casi questa è la directory in cui risiede |
| 19 | + lo script, a meno che non sia stata cambiata. Utilizzando la <acronym>CLI</acronym> |
| 20 | + <acronym>SAPI</acronym>, per impostazione predefinita è la directory da cui è stato |
| 21 | + chiamato lo script. |
| 22 | + </para> |
| 23 | + <simpara> |
| 24 | + Con alcune funzioni, come <function>fopen</function> e |
| 25 | + <function>file_get_contents</function>, <literal>include_path</literal> |
| 26 | + può essere opzionalmente utilizzato per la ricerca di percorsi relativi. |
| 27 | + </simpara> |
| 28 | + </refsect1><!-- }}} --> |
| 29 | + |
| 30 | + <refsect1 role="usage"> <!-- {{{ --> |
| 31 | + &reftitle.usage; |
| 32 | + <itemizedlist> |
| 33 | + <listitem><simpara><filename>/path/to/file.ext</filename></simpara></listitem> |
| 34 | + <listitem><simpara><filename>relative/path/to/file.ext</filename></simpara></listitem> |
| 35 | + <listitem><simpara><filename>fileInCwd.ext</filename></simpara></listitem> |
| 36 | + <listitem><simpara><filename>C:/path/to/winfile.ext</filename></simpara></listitem> |
| 37 | + <listitem><simpara><filename>C:\path\to\winfile.ext</filename></simpara></listitem> |
| 38 | + <listitem><simpara><filename>\\smbserver\share\path\to\winfile.ext</filename></simpara></listitem> |
| 39 | + <listitem><simpara><filename>file:///path/to/file.ext</filename></simpara></listitem> |
| 40 | + </itemizedlist> |
| 41 | + </refsect1> <!-- }}} --> |
| 42 | + |
| 43 | + <refsect1 role="options"><!-- {{{ --> |
| 44 | + &reftitle.options; |
| 45 | + <para> |
| 46 | + <table> |
| 47 | + <title>Riepilogo del wrapper</title> |
| 48 | + <tgroup cols="2"> |
| 49 | + <thead> |
| 50 | + <row> |
| 51 | + <entry>Attributo</entry> |
| 52 | + <entry>Supportato</entry> |
| 53 | + </row> |
| 54 | + </thead> |
| 55 | + <tbody> |
| 56 | + <row> |
| 57 | + <entry>Limitato da <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry> |
| 58 | + <entry>No</entry> |
| 59 | + </row> |
| 60 | + <row> |
| 61 | + <entry>Permette la lettura</entry> |
| 62 | + <entry>Sì</entry> |
| 63 | + </row> |
| 64 | + <row> |
| 65 | + <entry>Permette la scrittura</entry> |
| 66 | + <entry>Sì</entry> |
| 67 | + </row> |
| 68 | + <row> |
| 69 | + <entry>Permette l'aggiunta</entry> |
| 70 | + <entry>Sì</entry> |
| 71 | + </row> |
| 72 | + <row> |
| 73 | + <entry>Permette la lettura e scrittura simultanea</entry> |
| 74 | + <entry>Sì</entry> |
| 75 | + </row> |
| 76 | + <row> |
| 77 | + <entry>Supporta <function>stat</function></entry> |
| 78 | + <entry>Sì</entry> |
| 79 | + </row> |
| 80 | + <row> |
| 81 | + <entry>Supporta <function>unlink</function></entry> |
| 82 | + <entry>Sì</entry> |
| 83 | + </row> |
| 84 | + <row> |
| 85 | + <entry>Supporta <function>rename</function></entry> |
| 86 | + <entry>Sì</entry> |
| 87 | + </row> |
| 88 | + <row> |
| 89 | + <entry>Supporta <function>mkdir</function></entry> |
| 90 | + <entry>Sì</entry> |
| 91 | + </row> |
| 92 | + <row> |
| 93 | + <entry>Supporta <function>rmdir</function></entry> |
| 94 | + <entry>Sì</entry> |
| 95 | + </row> |
| 96 | + </tbody> |
| 97 | + </tgroup> |
| 98 | + </table> |
| 99 | + </para> |
| 100 | + </refsect1> <!-- }}} --> |
| 101 | + |
| 102 | +</refentry> |
| 103 | + |
| 104 | +<!-- Keep this comment at the end of the file |
| 105 | +Local variables: |
| 106 | +mode: sgml |
| 107 | +sgml-omittag:t |
| 108 | +sgml-shorttag:t |
| 109 | +sgml-minimize-attributes:nil |
| 110 | +sgml-always-quote-attributes:t |
| 111 | +sgml-indent-step:1 |
| 112 | +sgml-indent-data:t |
| 113 | +indent-tabs-mode:nil |
| 114 | +sgml-parent-document:nil |
| 115 | +sgml-default-dtd-file:"~/.phpdoc/manual.ced" |
| 116 | +sgml-exposed-tags:nil |
| 117 | +sgml-local-catalogs:nil |
| 118 | +sgml-local-ecat-files:nil |
| 119 | +End: |
| 120 | +vim600: syn=xml fen fdm=syntax fdl=2 si |
| 121 | +vim: et tw=78 syn=sgml |
| 122 | +vi: ts=1 sw=1 |
| 123 | +--> |
0 commit comments