> Date: Thu, 12 Mar 2009 14:55:52 -0400
> Subject: Re: [PHP] Copy Non-Text file from One Server to Another Issues
> From: danbr...@php.net
> To: aj...@alumni.iu.edu
> CC: php-general@lists.php.net
>
> On Thu, Mar 12, 2009 at 14:51, Alice Wei wrote:
> >
> > War
On Thu, Mar 12, 2009 at 14:51, Alice Wei wrote:
>
> Warning: file_get_contents() expects parameter 1 to be string, resource
> given in C:\Inetpub\wwwroot\test\hello.php on line
> 18
Freshman mistake.
$file2 = fopen($copydir . "/play.txt", "w+");
You're trying to read a data stream i
Hi,
I have a simple code as shown in the following:
http://remote_server/copy/play.txt";;
$file2 = "http://remote_server/copy/test.jpg";;
$file3 = "http://remote_server/copy/sample.pdf";;
//directory to copy to (must be CHMOD to 777)
$copydir = ".";
$data = file_get_contents($file);
$file2
3 matches
Mail list logo