You are here: Re: Chmod « PHP Programming Language « IT news, forums, messages
Re: Chmod

Posted by frizzle on 11/04/55 11:44

Jerry Stuckle wrote:
> frizzle wrote:
> > Jerry Stuckle wrote:
> >
> >>frizzle wrote:
> >>
> >>>Jerry Stuckle wrote:
> >>>
> >>>
> >>>>frizzle wrote:
> >>>>
> >>>>
> >>>>>Jerry Stuckle wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>frizzle wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Jerry Stuckle wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>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
> >>>>>>>>==================
> >>>>>>>
> >>>>>>>
> >>>>>>>Ok, thanks.
> >>>>>>>Not to go on and on about this, but the other thing i asked is
> >>>>>>>impossible as well then?
> >>>>>>>
> >>>>>>> "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.
> >>>>>>>
> >>>>>>
> >>>>>>It's easy to ftp or to upload via PHP. Both work quite well (unless the
> >>>>>>server's configuration is screwed up). It's when you try to mix the two you
> >>>>>>start running into permission problems and need to chmod.
> >>>>>>
> >>>>>>--
> >>>>>>==================
> >>>>>>Remove the "x" from my email address
> >>>>>>Jerry Stuckle
> >>>>>>JDS Computer Training Corp.
> >>>>>>jstucklex@attglobal.net
> >>>>>>==================
> >>>>>
> >>>>>
> >>>>>owkaaaaayyyy, i never realized ftp and uploading aren't the same
> >>>>>thing...
> >>>>>I don't need to mix them, i need a script to upload files, wich can
> >>>>>prefferably
> >>>>>run without any chmodding etc.
> >>>>>
> >>>>>Frizzle.
> >>>>>
> >>>>
> >>>>Ok, you just need to ensure you have the original directory permissions set
> >>>>properly, then. In a typical installation the directory would be owned by the
> >>>>webserver's userid with permissions of 755.
> >>>>
> >>>>And I hope I didn't confuse you. You can upload via HTTP, or with the ftp PUT
> >>>>command. In either case the file ends up on the server. But how it gets there
> >>>>is much different.
> >>>>
> >>>>
> >>>>--
> >>>>==================
> >>>>Remove the "x" from my email address
> >>>>Jerry Stuckle
> >>>>JDS Computer Training Corp.
> >>>>jstucklex@attglobal.net
> >>>>==================
> >>>
> >>>
> >>>When i create a new folder, either via Plesk, Dreamweaver or WS_FTP,
> >>>folders are standard chmodded 755.
> >>>That should be allright then ...
> >>>
> >>>Frizzle.
> >>>
> >>
> >>*Should be* is the key. If your host has things set ip properly, then yes you
> >>should be OK. But if not...
> >>
> >>And I'm not sure about Plesk, but I know DreamWeaver and WS_FTP both use ftp to
> >>transfer files. I suspect Plesk does, also.
> >>
> >>
> >>--
> >>==================
> >>Remove the "x" from my email address
> >>Jerry Stuckle
> >>JDS Computer Training Corp.
> >>jstucklex@attglobal.net
> >>==================
> >
> >
> > Well, ok, but where should i focus now to build a script to upload
> > files to my server?
> > FTP, or an other file transfer method?
> > It would be ideal if i could also create / delete folders ...
> >
> > Frizzle.
> >
>
>
> Frizzle,
>
> It depends on how you want to do things. If you're going to be the only one
> uploading, you can do ftp or http uploads. If you have users who may not be
> familiar with ftp, you should do http uploads.
>
> The downside of http uploads is you can't synchronize files between your local
> copy and the website with products like Dreamweaver.
>
> You can create and delete directories in PHP also, assuming your host hasn't
> disabled these functions and you have the appropriate permissions. So that's
> not a problem.
>
> It's all in how you want to maintain your site.
>
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================

It's meant for a user based site; users with certain priviledges are
allowed to add news and files to the site. No synchronizing
needed. Mostly images and mp3's, maybe some docs etc.

Frizzle.

 

Navigation:

[Reply to this 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

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