From b8b328e7da9f99b484f87d9640e87daaf65d6ac5 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Sat, 19 Apr 2003 03:01:32 +0000 Subject: [PATCH] Update re: parameters now accepting string urls git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@123914 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/stream-copy-to-stream.xml | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/reference/stream/functions/stream-copy-to-stream.xml b/reference/stream/functions/stream-copy-to-stream.xml index 45e80b823c..eb03380a5f 100644 --- a/reference/stream/functions/stream-copy-to-stream.xml +++ b/reference/stream/functions/stream-copy-to-stream.xml @@ -1,5 +1,5 @@ - + stream_copy_to_stream @@ -9,10 +9,20 @@ Description intstream_copy_to_stream - resourcesource - resourcedest + resource|stringsource + resource|stringdest intmaxlength + + source and dest can each be + either an active stream resource (opened with fopen, + fsockopen, stream_socket_connect, + stream_socket_accept, or another stream creation + function), or a string pointing to a filename or valid wrapper resource. + If source or dest are strings, + PHP will attempt to open the stream from reading or + writting as appropriate, perform the copy, then close it. + Makes a copy of up to maxlength bytes of data from the current position in source to @@ -31,6 +41,19 @@ $dest2 = fopen('remainder.txt','w'); print stream_copy_to_stream($src, $dest1, 1024) . " bytes copied to first1k.txt\n"; print stream_copy_to_stream($src, $dest2) . " bytes copied to remainder.txt\n"; +?> +]]> + + + + Using <function>stream_copy_to_stream</function> on urls + + ]]>