File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
reference/filesystem/functions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <!-- EN-Revision: e3ae86b439c1963f0cd6d262712e2d3f7e85bc37 Maintainer: Manuel dG Status: working -->
2+ <!-- EN-Revision: e3ae86b439c1963f0cd6d262712e2d3f7e85bc37 Maintainer: ManueldG Status: working -->
33<!-- CREDITS: cortesi-->
44<refentry xmlns =" http://docbook.org/ns/docbook" xml : id =" function.file" >
55 <refnamediv >
161161 <programlisting role =" php" >
162162<![CDATA[
163163<?php
164- // Get a file into an array. In this example we'll go through HTTP to get
165- // the HTML source of a URL.
164+ // inserisce una pagina web in un array e la stampa. In questo esempio useremo il protocollo
165+ // HTTP per ottenere il sorgente di un URL
166166$lines = file('http://www.example.com/');
167167
168- // Loop through our array, show HTML source as HTML source; and line numbers too.
168+ // Ciclo attraverso l' array, si visualizzerà il sorgente come html ed i numeri di linea
169169foreach ($lines as $line_num => $line) {
170170 echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n";
171171}
172172
173- // Using the optional flags parameter
173+ //Utilizzando i flag come parametro opzionale
174174$trimmed = file('somefile.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
175175?>
176176]]>
You can’t perform that action at this time.
0 commit comments