changed urls in examples

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@77505 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Georg Richter 2002-04-10 08:25:25 +00:00
parent eb737cc3f5
commit b1ed4e59e6

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.139 $ -->
<!-- $Revision: 1.140 $ -->
<reference id="ref.filesystem">
<title>Filesystem functions</title>
<titleabbrev>Filesystem</titleabbrev>
@ -726,13 +726,13 @@ fclose ($fd);
<![CDATA[
<?php
// get a web page into an array and print it out
$fcontents = file ('http://www.php.net/');
$fcontents = file ('http://www.example.com/');
while (list ($line_num, $line) = each ($fcontents)) {
echo "<b>Line $line_num:</b>; ", htmlspecialchars ($line), "<br>\n";
}
// get a web page into a string
$fcontents = implode ('', file ('http://www.php.net/'));
$fcontents = implode ('', file ('http://www.example.com/'));
?>
]]>
</programlisting>
@ -1316,7 +1316,7 @@ $fcontents = implode ('', file ('http://www.php.net/'));
<![CDATA[
$fp = fopen ("/home/rasmus/file.txt", "r");
$fp = fopen ("/home/rasmus/file.gif", "wb");
$fp = fopen ("http://www.php.net/", "r");
$fp = fopen ("http://www.example.com/", "r");
$fp = fopen ("ftp://user:password@example.com/", "w");
]]>
</programlisting>