PDA

View Full Version : chmod a *.php file


retsdarb
6-7-02, 04:13 PM
I have read several posts regarding ftp and chmod and I know that the *.php file must be set with 755 permissions.

If I set the permissions locally to 755 and then upload the file, they get changed to 644. Actually, all files in my */htdocs directory have 644 permissions.

I have read several posts about using ftp tool <whatever> and it will do it for you. OK, call me stupid, but those tools are just guis that will enter all the command line stuff for you with button clicks. What is the actual ftp syntax?

For example, in Solaris, the command is simply "chmod 755 php_test.php"

However, from an ftp prompt, I can find no way to set the permissions of remote files! :( Please help.

Brad Johnson

fsk405n
6-7-02, 04:44 PM
at ftp command line prompt (while connected to server) type:
help

that will give a list of allowed cmd's the server has.

retsdarb
6-7-02, 04:49 PM
yeah, I know that i can type help. it seems that the list is not a full list of available commands though.

retsdarb
6-7-02, 05:42 PM
I have found that there are a number of so-called secret ftp commands that are usable, but not published. The developers of the guis obviouisly know the hidden commands. So that seems to be the answer. I broke down and downloaded a windows based ftp tool. The problem was that I was using Solaris and didn't want to go this route. Oh well...

Problem solved.