example correction

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@101642 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2002-10-28 10:19:32 +00:00
parent 02ac605c63
commit c6fe9855c5

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<!-- splitted from ./en/functions/network.xml, last change in rev 1.18 -->
<refentry id="function.stream-set-timeout">
<refnamediv>
@ -29,7 +29,7 @@ if(!$fp) {
} else {
fputs($fp, "GET / HTTP/1.0\n\n");
$start = time();
socket_set_timeout($fp, 2);
stream_set_timeout($fp, 2);
$res = fread($fp, 2000);
var_dump(stream_get_meta_data($fp));
fclose($fp);