General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old May 5th, 2003, 08:40 PM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question How do i chmod the text files??

Hi

Can anyone teach me how to chmod the txt files to 777 on the server?? Tks alot!

Reply With Quote
  #2  
Old May 5th, 2003, 10:17 PM
avit avit is offline
Not Yet Perfect
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Squamish, BC
Posts: 111 avit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to avit
Are you using FTP or shell access?

Reply With Quote
  #3  
Old May 5th, 2003, 11:18 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
chmod("path_to_file.txt", 777); from php

Reply With Quote
  #4  
Old May 8th, 2003, 12:33 AM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

:::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!

Reply With Quote
  #5  
Old May 8th, 2003, 08:11 PM
avit avit is offline
Not Yet Perfect
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Squamish, BC
Posts: 111 avit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to avit
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:
<?php
chmod
("path_to_file.txt"777);
?>


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.

Reply With Quote
  #6  
Old May 10th, 2003, 01:05 AM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #7  
Old May 10th, 2003, 02:20 AM
avit avit is offline
Not Yet Perfect
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Squamish, BC
Posts: 111 avit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to avit
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.

Reply With Quote
  #8  
Old May 10th, 2003, 12:10 PM
jaylene83 jaylene83 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 13 jaylene83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

yeah Tripod does not support PHP..........but anyway i've learnt new stuff and thanks for your help!!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > How do i chmod the text files??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway