Reply to Re: Chmod

Your name:

Reply:


Posted by Jerry Stuckle on 04/06/06 07:26

frizzle wrote:
> Jerry Stuckle wrote:
>
>>Gary L. Burnore wrote:
>>
>>>On Wed, 05 Apr 2006 07:55:14 -0500, Jerry Stuckle
>>><jstucklex@attglobal.net> wrote:
>>>.
>>>
>>>
>>>>>>Standard (DW created files/dirs) have user 'domainname', permissions
>>>>>>'rwx r-x r-x ',
>>>>>>Ftp app uploaded (with chmod 777) have user 'apache', permissions 'rw-
>>>>>>--- --- '
>>>>>>
>>>>>>Frizzle.
>>>>>
>>>>>
>>>>>Is there a possibility to upload files via PHP without Chmodding, and
>>>>>keep the same group / permissions on uploaded files as those uploaded
>>>>>with, say, DreamWeaver or WS_FTP ?
>>>>>
>>>>>Frizzle.
>>>>>
>>>>>(E.g. with ftp_put() wich i can't seem to get working.)
>>>>>
>>>>
>>>>Only if you can ftp in as the web server.
>>>
>>>
>>>It depends on the ftp server, actually. Our ftp server correctly sets
>>>the permissions for you when you push. Seems your ISP has something
>>>set incorrectly.
>>>
>>
>>No, he was asking how to upload files with PHP - not with FTP.
>>
>>--
>>==================
>>Remove the "x" from my email address
>>Jerry Stuckle
>>JDS Computer Training Corp.
>>jstucklex@attglobal.net
>>==================
>
>
> Sorry, kind of lost it here; is it possible to FTP via PHP w/o any
> chmodding etc.
> So i could mail a zipfile to a client, tell them to unpack it and
> upload it, and
> have the upload script up and running ... ?
>
> Frizzle.
>

Frizzle,

No, you can't upload via PHP. FTP is a system service, just as telnet, ssh and
web server are.

When you ftp a file to the server, the owner of the file is the userid who
uploaded the file (signed into ftp). But when you upload via PHP, you're using
the web server, and the owner is the userid of the server itself.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация