Jul 24, 2008

About Set Permisstions.... - auto set it, how?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

About Set Permisstions.... - auto set it, how?

nancmu
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

Reply

no9t9
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).

Reply

Galahad
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...

Reply

odomike
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

 

 

 


Reply

nancmu
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);

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : permisstions auto

  1. Can Reset The Id Auto Increment? - phpMyadmin (10)
    hi, Can we reset the id auto increment in the mysql database using by phpMyadmin? let's say the
    shoutbox . the id #number table.. somehow i deleted some rows.. and i wanted to re-order/reset the
    id number acendingly in order rather than skip out.. thks ...
  2. Delete Problem With Id - Id as auto_increment, and identifier for a row (4)
  3. Auto Pruning An Sql Database With Php - How can i do this? (4)
    Hey all. Now i have a DB, an SQL DB, and i need to auto prune the data there to delete rows lder
    than a certain time, lets say 2 months for now, the question is how do i do this? The obvious thing
    is just to add a field which is the numerical representation of the month when the data is entered
    and every time the DB is accessed it will check this number against the current month,in a numerical
    format, and if the difference is two or greater that row is deleted, so if the month is January, it
    would be O1 and if the current month is march then it would be O3 and the diff...
  4. Requesting Auto Generating Id Tag In Php Code - Php Coding (2)
    Hello...I'm designing a website in PHP where ppl can submit their links for "cool sites".
    Anyway, when somebody submit's a link to a website for example "http://www.google.com" it
    creates an id such as "index.php?id=1134411593". I dont want the links to be converted into
    id's. I want it to remain as "http://www.google.com". I have the following coding on
    ( echo " ). I'm a novice. Please Help!!!!
    Thanks... Plus I also want to add the date on when the link was submitted. Please follow our foru...
  5. Suppressing Mysql Error In Php - How to suppress auto generated mysql err (4)
    I am testing my website on my local machine. It is still in development stage and I am using
    php/mysql. If there is a mysql connection error, I am checking for the connection variable and
    displaying a proper error message. But even before it displays my error message, it displays an
    error message on browser thrown by mysql (MySQL Connection Failed: Access denied for user). Can I
    suppress this message and display only my message?...



Looking for set, permisstions, auto, set

Searching Video's for set, permisstions, auto, set
advertisement



About Set Permisstions.... - auto set it, how?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE