svn: /phpdoc/ru/trunk/reference/filesystem/functions/ fread.xml
| From: | Alexander Moskaliov | Date: | Sun, 28 Dec 2014 18:23:38 +0000 |
| Subject: | svn: /phpdoc/ru/trunk/reference/filesystem/functions/ fread.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-4760@lists.php.net to get a copy of this message | ||
irker Sun, 28 Dec 2014 18:23:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=335437
Log:
Updated translation
Changed paths:
U phpdoc/ru/trunk/reference/filesystem/functions/fread.xml
Modified: phpdoc/ru/trunk/reference/filesystem/functions/fread.xml
===================================================================
--- phpdoc/ru/trunk/reference/filesystem/functions/fread.xml 2014-12-28 18:18:16 UTC (rev 335436)
+++ phpdoc/ru/trunk/reference/filesystem/functions/fread.xml 2014-12-28 18:23:38 UTC (rev 335437)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 308472 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 335436 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.fread">
@@ -148,7 +148,12 @@
<![CDATA[
<?php
$handle = fopen("http://www.example.com/",
"rb");
+if (FALSE === $handle) {
+ exit("Не удалось открыть поток по url адресу");
+}
+
$contents = '';
+
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}