cvs: phpdoc-hu /features remote-files.xml
| From: | Cece) Szabolcs | Date: | Thu, 01 Apr 2004 19:31:32 +0000 |
| Subject: | cvs: phpdoc-hu /features remote-files.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-528@lists.php.net to get a copy of this message | ||
cece Thu Apr 1 14:31:32 2004 EDT
Modified files:
/phpdoc-hu/features remote-files.xml
Log:
sync with en revision
http://cvs.php.net/diff.php/phpdoc-hu/features/remote-files.xml?r1=1.13&r2=1.14&ty=u
Index: phpdoc-hu/features/remote-files.xml
diff -u phpdoc-hu/features/remote-files.xml:1.13 phpdoc-hu/features/remote-files.xml:1.14
--- phpdoc-hu/features/remote-files.xml:1.13 Tue Aug 12 19:20:31 2003
+++ phpdoc-hu/features/remote-files.xml Thu Apr 1 14:31:32 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.22 Maintainer: goba Status: ready -->
+<!-- EN-Revision: 1.23 Maintainer: goba Status: ready -->
<chapter id="features.remote-files">
<title>Távoli állományok kezelése</title>
@@ -45,15 +45,15 @@
<programlisting role="php">
<![CDATA[
<?php
-$file = fopen ("http://www.example.com/",
"r");
+$file = fopen( "http://www.example.com/",
"r" );
if (!$file) {
echo "<p>Nem lehet megnyitni a külsõ file-t!\n";
exit;
}
while (!feof ($file)) {
- $line = fgets ($file, 1024);
+ $line = fgets( $file, 1024 );
/* Ez csak akkor jó, ha a cím és a körbezáró tag-ek egy sorban vannak */
- if (eregi ("<title>(.*)</title>", $line, $out)) {
+ if ( eregi( "<title>(.*)</title>", $line, $out ) ) {
$title = $out[1];
break;
}
@@ -84,14 +84,14 @@
<programlisting role="php">
<![CDATA[
<?php
-$file = fopen ("ftp://ftp.example.com/incoming/outputfile",
"w");
+$file = fopen( "ftp://ftp.example.com/incoming/outputfile",
"w" );
if (!$file) {
echo "<p>Nem lehet megnyitni a külsõ file-t írásra.\n";
exit;
}
/* Itt írunk a file-ba */
-fputs ($file, "$_SERVER['HTTP_USER_AGENT']\n");
-fclose ($file);
+fwrite( $file, "$_SERVER['HTTP_USER_AGENT']\n" );
+fclose( $file );
?>
]]>
</programlisting>