Re: write with cURL



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!
.



Relevant Pages

  • Re: How to unable the use of tainted mode in a CGI script ?
    ... script and have it fail). ... Did you ask your host to clarify how/why ... hosting provider that has a better idea of how this works. ... Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers ...
    (comp.lang.perl.misc)
  • Re: 2003 Server vs. Linux
    ... is, of course, cheaper to host because the entrance prices for the systems ... Most hosting providers' servers run - IIRC - Free BSD or some ... Linux would undoubtedly be cheaper at first. ...
    (microsoft.public.windows.server.general)
  • Re: 2003 Server vs. Linux
    ... is, of course, cheaper to host because the entrance prices for the systems ... Most hosting providers' servers run - IIRC - Free BSD or some ... Linux would undoubtedly be cheaper at first. ...
    (alt.linux)
  • Re: Exchange/Domain Question
    ... Thats the other option with my hosting firm's servers acting as backup mail servers. ... I suppose it probably boils down to the reliability of that POP3 connector. ... You can setup exchange to receive mail from both the .com and the ...
    (microsoft.public.windows.server.sbs)
  • Re: How does one setup a shell account?
    ... > Sorry to ask a newbie question, but I am still fairly new at this, having ... > very recently converted my servers from M$ to Redhat 8... ... > firewall log for port 22. ... If I decided to offer a hosting space for a mud, ...
    (comp.os.linux.security)

Loading