SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Accessing files with PHP only!

    Hello,

    I am intending to write a php website with xml.

    When I need to access the xml file with php I cannot access it unless I chmod it to allow "others" to read/write.

    So everybody will be able to see my xml file. Otherwise, php will not be able to access the xml file.

    How can i prevent "others" from reading/writing my xml file so that php scripts only can access it?

    .htaccess is not preferable. I would like a "chmod" solution!

    Thanx

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    chown apache:apache *
    chmod 600 *
    ----Adopt-a-Sig----
    Your message here!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •