Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> About Set Permisstions...., auto set it, how?
nancmu
post Jan 5 2005, 04:51 AM
Post #1


Advanced Member
*******

Group: Members
Posts: 136
Joined: 20-October 04
From: Thailand
Member No.: 1,840



I have some problem about set permissions by automatic..
for example...
I created txt file with php... but when my file was added to server(trap17), it always set to 644 and i want to set it to 666.
Anybody help me... PLEASE biggrin.gif
Go to the top of the page
 
+Quote Post
no9t9
post Jan 5 2005, 06:23 AM
Post #2


Privileged Member
*********

Group: Members
Posts: 773
Joined: 4-November 04
Member No.: 2,118



If you are talking about php programming, you can change the file permissions using the chmod function.

chmod($filename, 0666);

or if you are simply uploading the TXT file to the server, you can use your FTP program to change the file permissions. In most FTP programs, just right click on the file and choose chmod.

I think you can also do it through the file manager in cpanel. But, I'm not sure because I never use that (it sucks).
Go to the top of the page
 
+Quote Post
Galahad
post Jan 5 2005, 11:40 AM
Post #3


Neurotical Squirrel
*********

Group: [HOSTED]
Posts: 590
Joined: 4-November 04
From: Novi Sad, Vojvodina
Member No.: 2,127



If you have much spare time, you could make your own file manager utility smile.gif

And, yes no9t9, you can change permissions from cpanel file manager... Just click on the filename, and on the upper righ side you'll find options. I think it's called Permissions, or something like that. I agree cpanel file manager is'nt a visual master piece, and has some weird functionality, but it gets the job done...
Go to the top of the page
 
+Quote Post
odomike
post Jan 5 2005, 11:50 AM
Post #4


Core2Q-QX6800
***********

Group: [HOSTED]
Posts: 1,093
Joined: 3-August 04
From: Nigeria
Member No.: 569



Any file thats giving you some probs in ur website, simply chmod it to 0777. You can use your browser uploads or ftp to do that.

Using your browser......
1. click on the file name (u must have logged into your Cpanel=>File Manager)
2. Click on the filename
3. on the right hand side...click on change permissions (might not be completely the same).
4. Then click in all the spaces to tick them.
5. click on the button below to change your file permission to 0777.

Using FTP client...........
1. Start you FTP client
2. log into your site's ftp server by going to site manager=>type in your ftp ID and PW (same as CPanel ID and PW)=>submit
3. Goto the file and right click on it.
4. Click on set pemisions
5. click on all the spaces to fill all.
6. submit to chmod to 0777
7. U r done.

I hope that helps you pal. wink.gif smile.gif
Go to the top of the page
 
+Quote Post
nancmu
post Jan 5 2005, 01:27 PM
Post #5


Advanced Member
*******

Group: Members
Posts: 136
Joined: 20-October 04
From: Thailand
Member No.: 1,840



Thank for all,
I think this is a basic for php programming but NOT ME. I started learning php from free source code (webboard, guestbook, chat,...) or webboard programming. I know about 6-7 month to learn my new language, it's so hard for clear everything. Some function that you think it is easy but i never know unsure.gif .

rolleyes.gif this is my new knowledge... smile.gif
CODE
chmod($filename, 0666);
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Can Reset The Id Auto Increment?(11)
  2. Auto Pruning An Sql Database With Php(4)
  3. Delete Problem With Id(4)


 



- Lo-Fi Version Time is now: 23rd November 2008 - 12:14 AM