To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 3213
  PHP help...
 
Hi all, I need to be able to write files (for example, thumbnail images) to a directory using a PHP script. The problem is I'd rather not give world write access to the thumbnail directory. Is there a way I can change users inside the PHP script so (...) (23 years ago, 23-Jul-01, to lugnet.off-topic.geek)
 
  Re: PHP help...
 
(...) what you need to do is set either the owner or the group of the directory to the webserver's user (nobody, www, apache, whatever). Once that is done, you can give permissions to the server to write to the directory. In general, no user can (...) (23 years ago, 23-Jul-01, to lugnet.off-topic.geek)
 
  Re: PHP help...
 
(...) Yes it does! Now how do run chgrp without telnet... --Bram Bram Lambrecht bram@cwru.edu (URL) (23 years ago, 23-Jul-01, to lugnet.off-topic.geek)
 
  Re: PHP help...
 
(...) well, to do a chgrp, you need to have either root access, or be a member of both groups (the current one and the new one). What you can do (assuming you can chmod, and that you have cgi access), is chmod a directory to world writable, and (...) (23 years ago, 23-Jul-01, to lugnet.off-topic.geek)
 
  Re: PHP help...
 
(...) That would help, except that I've already made and ftped data to most of the directory. And I'd rather not FTP 25 MB again over my puny 56.6 connection. I've contacted tech support to see if they'll get my telnet access fixed. --Bram Bram (...) (23 years ago, 24-Jul-01, to lugnet.off-topic.geek)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR