mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
example correction
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@101642 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
02ac605c63
commit
c6fe9855c5
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue