cortesi Fri Dec 21 19:40:10 2001 EDT
Modified files:
/phpdoc/it/features remote-files.xml
Log:
update and translation in italian of an example
Index: phpdoc/it/features/remote-files.xml
diff -u phpdoc/it/features/remote-files.xml:1.7 phpdoc/it/features/remote-files.xml:1.8
--- phpdoc/it/features/remote-files.xml:1.7 Wed Dec 12 15:51:45 2001
+++ phpdoc/it/features/remote-files.xml Fri Dec 21 19:40:10 2001
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.12 Maintainer: marco Status: ready -->
+<!-- EN-Revision: 1.13 Maintainer: cortesi Status: ready -->
+<!-- CREDITS: marco -->
<chapter id="features.remote-files">
<title>Utilizzo di file remoti</title>
@@ -35,13 +36,13 @@
<?php
$file = fopen ("http://www.php.net/", "r");
if (!$file) {
- echo "<p>Unable to open remote file.\n";
+ echo "<p>Impossibile aprire il file remoto.\n";
exit;
}
while (!feof ($file)) {
- $line = fgets ($file, 1024);
- /* This only works if the title and its tags are on one line */
- if (eregi ("<title>(.*)</title>", $line, $out)) {
+ $linea = fgets ($file, 1024);
+ /* Funziona solo se title e i relativi tag sono sulla medesima riga */
+ if (eregi ("<title>(.*)</title>", $linea, $out)) {
$title = $out[1];
break;
}
@@ -69,10 +70,10 @@
<?php
$file = fopen ("ftp://ftp.php.net/incoming/outputfile", "w");
if (!$file) {
- echo "<p>Unable to open remote file for writing.\n";
+ echo "<p>Impossibile aprire il file remoto in scrittura.\n";
exit;
}
-/* Write the data here. */
+/* Scrive i dati qui. */
fputs ($file, "$HTTP_USER_AGENT\n");
fclose ($file);
?>