|
Posted by C. (http://symcbean.blogspot.c on June 26, 2008, 8:33 am
Please log in for more thread options wrote:
> On Jun 25, 9:23 pm, "=C1lvaro G. Vicario"
>
>
>
> > ^AndreA^ escribi=F3:
>
> > > <b>Warning</b>: file_put_contents(RSS_news/bbc.xml) [<a
> > > href=3D'function.file-put-contents'>function.file-put-contents
>
> > > </a>]: failed to open stream: No such file or directory in <b>/var/ww=
w/
> > > Eclipse/thebigone/server_scripts
>
> > > /rss_bbc.php</b> on line <b>9</b><br />"
>
> > Does PHP have permission to create files in
> > "/var/www/exist/Eclipse/thebigone/server_scripts"? If PHP runs as Apach=
e
> > module then the "server_scripts" directory needs to have write
> > permission for the user Apache runs as (typically "nobody" or "apache")=
.
>
> > You can probably change permissions with your FTP client. I suggest you
> > create a special folder for these downloads so you don't need to make
> > server_scripts itself writable.
>
> > --
> > --http://alvaro.es-=C1lvaro G. Vicario - Burgos, Spain
> > -- Mi sitio sobre programaci=F3n web:http://bits.demogracia.com
> > -- Mi web de humor al ba=F1o Mar=EDa:http://www.demogracia.com
> > --
>
> First confirm, the file (in which you are trying to put the xml
> contents) is exists to the mentioned location,
> if YES then, Apache should have the permission to write in that file.
> (Give the write permission to the file).
I expect he'll sat it does - but is looking in the wrong place.
OP: try using the absolute path in the fn call.
C.
|