|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi
Can anyone teach me how to chmod the txt files to 777 on the server?? Tks alot! |
|
#2
|
|||
|
|||
|
Are you using FTP or shell access?
|
|
#3
|
|||
|
|||
|
chmod("path_to_file.txt", 777); from php
|
|
#4
|
|||
|
|||
|
:::avit:::
sorry i'm not too sure whether i'm using FTP or shell access........ :::Ben::: sorry i'm very new to PHP......so can u further explain your reply??...... Well this Flash chat needs to be uploaded into my class website. so how do i chmod("path_to_file.txt", 777); from php???.......... by the way I'm using tripod to host the website......tks! |
|
#5
|
|||
|
|||
|
I've never used tripod. How do you upload your files? Is it via their website, or do you use a separate program for FTP (file transfer protocol) to upload the files?
If it's only through a web interface, then I don't think there will be a way to alter the file permissions unless tripod specifically gives you that option. Ask them. If it's through FTP, then have a look in your FTP program's documentation. There should be a function for setting the permissions for remote files. Does tripod even supply PHP? I was not aware of that... If they in fact do, then you can create a script that would change those permissions when it is triggered: PHP Code:
Save the above in a file called "setpermissions.php" on the server and then access it from your web browser. It won't show you anything on the screen, but your file will be changed. |
|
#6
|
|||
|
|||
|
Tripod can upload files either thru FTP or via their website......the FTP program that i'm using is cuteFTP.....
must the file be named "setpermissions.php" or can i use my own naming?? if i have more than 1 files to change can i combine all into 1 php file or do i need to separate into different "setpermissions.php" ?? what do u mean by access "setpermissions.php" from web browser??.........is it by calling this file by opening it in the web browser?? Last edited by jaylene83 : May 10th, 2003 at 01:28 AM. |
|
#7
|
|||
|
|||
|
Well if you are using FTP, then you don't need to go through writing a PHP script to do this. And like I said, I don't know if Tripod can even process a PHP script, and somehow I doubt it. I don't think that the PHP route will help you.
Cute FTP has a function for setting the permissions on remote files. Most any FTP program does. Permission mode 777 refers to: User ("owner"): read,write,execute Group: read,write,execute Other ("world"): read,write,execute Hope that helps. |
|
#8
|
|||
|
|||
|
yeah Tripod does not support PHP..........but anyway i've learnt new stuff and thanks for your help!!
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > How do i chmod the text files?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|