FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Having trouble writing/copying/renaming file to sub-directory
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Having trouble writing/copying/renaming file to sub-directory [message #170980 is a reply to message #170969] Mon, 13 December 2010 18:37 Go to previous messageGo to previous message
seeWebInstead is currently offline  seeWebInstead
Messages: 14
Registered: October 2010
Karma:
Junior Member
> From: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= <alvaro.NOSPAMTH...@demogracia.com.invalid>
> Then it's clear why you can't write on it:
> drwxr-xr-x 2 3237 vhosts 4096 Dec 11 02:10 RepSOAP
> You need to set the "w" (write) permission for other users. You can
> probably do it with your FTP client.

Yes, FTP does support chmod. I tried setting permission 777:
drwxrwxrwx 2 3237 vhosts 4096 Dec 14 01:27 ReqSOAP
and that fixed the problem. But allowing anyone anyone in the whole
world to write to this sub-directory seems a bad idea, so next I
backed it off to just 775:
drwxrwxr-x 2 3237 vhosts 4096 Dec 14 01:27 ReqSOAP
and it still was writable by my PHP script, so I hope that's safe
enough. All files in this directory (including the one I'm writing
now) will be public-key signed and encrypted, so if other users in
the same group write junk there, overwriting my own files during
the brief interval after I write them before a callback mechanism
fetches them, the worst it can do is disrupt message passing, not
insert forged messages. (The same will be true of reply messages in
another similar sub-directory, where there will be a brief interval
after a call-forward mechanism writes them until the local PHP
script fetches them.)

Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to generate cryptographically-secure random big-integers?
Next Topic: PHP Guestbook list on PHPKode.com
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 19:04:33 GMT 2024

Total time taken to generate the page: 0.06175 seconds