|
Posted by Gufo Rosso on 09/19/05 01:43
"Oli Filth" <catch@olifilth.co.uk> ha scritto nel messaggio
news:Rm3Xe.6478$ws4.6069@newsfe5-win.ntli.net...
> Gufo Rosso said the following on 17/09/2005 17:13:
> > i have a problem in this code:
> > i look manual.....
> >
> > $filew = "ftp://gufo:pizza@192.168.1.55:21/jj.php"; // file exists
> > $str = $_POST['data']; // contenent
> > $strwri = file_put_contents($filew,$str,0,1); <--- have a good example ?
> >
> >
> > error :
> >
> > Warning: file_put_contents() expects parameter 4 to be resource (?????)
> > integer given in C:\Programmi\Apache
> > Group\Apache2\htdocs\klinza_3.0\admin\blocks\admin-ftp\p23_mod_0.php on
line
> > 79
> >
>
> Don't use the last two parameters...
ftp://gufo:pizza@192.168.1.55:21/jj.php
Warning: file_put_contents(ftp://...@192.168.1.55:21/jj.php)
[function.file-put-contents]: failed to open stream: Remote file already
exists and overwrite context option not specified.<br /> FTP server reports
213 2382 in C:\Programmi\Apache
Group\Apache2\htdocs\klinza_3.0\admin\blocks\admin-ftp\p23_mod_0.php on line
79
>
> file_put_contents($url, $str);
>
> ...
>
>
> --
> Oli
Navigation:
[Reply to this message]
|