Re: write with cURL
- From: Tim Greer <tim@xxxxxxxxxxxxx>
- Date: Thu, 26 Feb 2009 14:42:11 -0800
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).
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
.
- Follow-Ups:
- Re: write with cURL
- From: Jerry Stuckle
- 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
- write with cURL
- Prev by Date: Re: write with cURL
- Next by Date: Re: Mail form
- Previous by thread: Re: write with cURL
- Next by thread: Re: write with cURL
- Index(es):
Relevant Pages
|
Loading