1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

you must chmod data.txt to 777

Discussion in 'PHP' started by mohamad1983, Apr 18, 2007.

  1. #1
    hi everyone,
    i know nothing about php but i have to install a php on a certain website and i was vewing the readme.txt, it says "you must chmod data.txt to 777" what is the meaning of that???:confused:
     
    mohamad1983, Apr 18, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    That's an ftp command, you must login to your ftp client and change the permissions of a file named data.txt to 777, look in the manual of your ftp client to find out how to do that
     
    krakjoe, Apr 18, 2007 IP
  3. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    310
    #3
    chmod to 777 is not secure and allows anyone to view or write to the file. If PHP running as CGI with suexec enabled, it will not allow you to set permissions above 755.
     
    mjewel, Apr 18, 2007 IP
  4. chilli_source

    chilli_source Active Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #4
    if the script reads and writes to that file, chmod 644 or 666 should do it
     
    chilli_source, Apr 18, 2007 IP
  5. mohamad1983

    mohamad1983 Peon

    Messages:
    173
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    commonguys i told ya i know nothing PHP...what r u talkin about...?????????
     
    mohamad1983, Apr 19, 2007 IP
  6. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #6
    Will.Spencer, Apr 19, 2007 IP
  7. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Which FTP Software are you using ?

    If you are using WS-FTP, you can right mouse click on the file in question on the server then select Properties then in the Numeric Value, enter 777 and you be set. Permission 777 means that the file can be read, write and executed by anyone and everyone.

    If you cannot do so yourself, write to your web host and tell them which file you need them to change the permission and they should be able to do it for you.
     
    eddy2099, Apr 19, 2007 IP
  8. mohamad1983

    mohamad1983 Peon

    Messages:
    173
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    well thanx eddy2099 now i think iam going in the right direction... :D
     
    mohamad1983, Apr 19, 2007 IP