Author |
Message |
fredmatrack
Junior WebHelper
Joined: 27 Feb 2002
Posts: 24
Location: Hoboken (Antwerpen, Belgium)
|
Posted:
Mon Mar 18, 2002 7:46 pm (22 years, 1 month ago) |
|
Is there a way to chmod a file using a php script. With Telnet or FTP I don't have acces to chmod files on the server so I want to do this with a script. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Mon Mar 18, 2002 8:03 pm (22 years, 1 month ago) |
|
I think there's a CHMOD function in PHP, but it might not work because of permissions. See php.net; I think it's chmod(); |
________________________________
|
|
|
|
fredmatrack
Junior WebHelper
Joined: 27 Feb 2002
Posts: 24
Location: Hoboken (Antwerpen, Belgium)
|
Posted:
Tue Mar 19, 2002 8:54 pm (22 years, 1 month ago) |
|
the chmod() function doesn't work. Thank you anyway. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 20, 2002 12:15 pm (22 years, 1 month ago) |
|
Anyway, why can't you CHMOD files with FTP? |
________________________________
|
|
|
|
fredmatrack
Junior WebHelper
Joined: 27 Feb 2002
Posts: 24
Location: Hoboken (Antwerpen, Belgium)
|
Posted:
Wed Mar 20, 2002 12:23 pm (22 years, 1 month ago) |
|
I think they disabled this function or so |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 20, 2002 12:27 pm (22 years, 1 month ago) |
|
Who is "they"? I've never heard of a host disabling CHMOD! |
________________________________
|
|
|
|
fredmatrack
Junior WebHelper
Joined: 27 Feb 2002
Posts: 24
Location: Hoboken (Antwerpen, Belgium)
|
Posted:
Wed Mar 20, 2002 1:03 pm (22 years, 1 month ago) |
|
The administrator of the server.
It is an e-smith server that runs on a mac os. (www.e-smith.org)
Maybe the chmodding isn't possible for tis server. I don't know. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 20, 2002 1:05 pm (22 years, 1 month ago) |
|
I would think that if you can't CHMOD using FTP, you won't be able to do it any other way. If Macs are like Windows, you don't need to do any CHMODing. |
________________________________
|
|
|
|
Darren
Team Member
Joined: 05 Feb 2002
Posts: 549
Location: London
|
Posted:
Wed Mar 20, 2002 6:37 pm (22 years, 1 month ago) |
|
Unless its OS X Server which is based on Unix and therefore has the same file privileges etc.
Even on my desktop version of OS X it lets you change the file permissions via FTP. |
|
|
|
|
fredmatrack
Junior WebHelper
Joined: 27 Feb 2002
Posts: 24
Location: Hoboken (Antwerpen, Belgium)
|
Posted:
Wed Mar 20, 2002 8:48 pm (22 years, 1 month ago) |
|
I will ask the sytem admin.
Thanks anyway. |
|
|
|
|
|
Page generation time: 0.213127 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme