Re: write with cURL
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Thu, 26 Feb 2009 20:06:14 -0500
Tim Greer wrote:
Ylva Poelman wrote:
The problem is that I do not want to change an existing file, but to
create a new one, write to it and saven it.
Then the directory you create the file is needs world read, write and
execute permissions. This is assuming that the PHP script runs as the
global web server user (and it surely does given the problem you have). So, create a directory and set it to chmod 1777 (or 0777 if you can't
add the sticky bit) and then have files created there (or wherever you
need, though it's a terribly bad idea to set the primary web root
directory itself to world writable).
World read/write is VERY BAD. It opens the website to all kinds of potential security risks from other users on the same server.
Rather, it should be user and group read/write, and ensure the web server itself is part of the group.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: write with cURL
- From: Tim Greer
- Re: write with cURL
- References:
- write with cURL
- From: user
- Re: write with cURL
- From: Tim Greer
- Re: write with cURL
- From: Ylva Poelman
- Re: write with cURL
- From: Tim Greer
- Re: write with cURL
- From: Ylva Poelman
- Re: write with cURL
- From: Tim Greer
- Re: write with cURL
- From: Ylva Poelman
- Re: write with cURL
- From: Tim Greer
- write with cURL
- Prev by Date: Re: write with cURL
- Next by Date: Re: write with cURL
- Previous by thread: Re: write with cURL
- Next by thread: Re: write with cURL
- Index(es):
Relevant Pages
|
Loading