Professional Web Applications Themes

permission accessing via file() - PHP Development

Need to access a single text file for read only where it resides using file(). To test the code I copied it local because I got "permission denied" message where it exists. Any safe solutions? TIA -Walt -- Reply to innkeepATcapitalDOTnet to email questions. -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- [url]http://www.newsfeeds.com[/url] - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =-----...

  1. #1

    Default permission accessing via file()

    Need to access a single text file for read
    only where it resides using file().
    To test the code I copied it local because
    I got "permission denied" message where it
    exists.
    Any safe solutions?
    TIA
    -Walt

    --
    Reply to innkeepATcapitalDOTnet to email questions.


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    [url]http://www.newsfeeds.com[/url] - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
    PenguinsAnonymous Guest

  2. #2

    Default Re: permission accessing via file()

    Carved in mystic runes upon the very living rock, the last words of of
    comp.lang.php make plain:
    > Need to access a single text file for read
    > only where it resides using file().
    > To test the code I copied it local because
    > I got "permission denied" message where it
    > exists.
    > Any safe solutions?
    You must either modify the permissions on the file, or run your script
    through a wrapper or under suexec.

    --
    Alan Little
    Phorm PHP Form Processor
    [url]http://www.phorm.com/[/url]
    Alan Little Guest

  3. #3

    Default Re: permission accessing via file()

    PenguinsAnonymous wrote:
    > Need to access a single text file for read
    > only where it resides using file().
    > To test the code I copied it local because
    > I got "permission denied" message where it
    > exists.
    missing info:
    php-4.2.2-17.2
    httpd-2.0.40-21.3b
    Linux nebula 2.4.20-8dcustom #5 Thu May 22 01:37:13 EDT 2003 ppc ppc ppc
    GNU/Linux
    Text file deep several directories in a /home/<user> dir.

    Someone must know about security and permission problems ??
    :)

    -Walt


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    [url]http://www.newsfeeds.com[/url] - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
    PenguinsAnonymous Guest

  4. #4

    Default Re: permission accessing via file()

    PenguinsAnonymous wrote:
    > PenguinsAnonymous wrote:
    >
    >>Need to access a single text file for read
    >>only where it resides using file().
    >>To test the code I copied it local because
    >>I got "permission denied" message where it
    >>exists.
    >
    >
    > missing info:
    > php-4.2.2-17.2
    > httpd-2.0.40-21.3b
    > Linux nebula 2.4.20-8dcustom #5 Thu May 22 01:37:13 EDT 2003 ppc ppc ppc
    > GNU/Linux
    > Text file deep several directories in a /home/<user> dir.
    Make sure that the webserver can access this directory, and that it has
    permissions to read the file.

    Daniel Bengs Guest

Similar Threads

  1. You may not have permission...after writing file to CD
    By Emma_Keep@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 2
    Last Post: September 5th, 01:45 PM
  2. File Permission
    By Clumsy Hamster in forum Macromedia ColdFusion
    Replies: 0
    Last Post: March 5th, 09:31 PM
  3. Why i cannot write a file, even i add a permission to that file.
    By Umut Tezduyar in forum ASP.NET Security
    Replies: 3
    Last Post: November 15th, 02:51 AM
  4. file permission errors
    By Greg Walton in forum Windows Server
    Replies: 1
    Last Post: June 16th, 02:15 PM
  5. File permission problem
    By Richard Muller in forum ASP
    Replies: 11
    Last Post: October 25th, 07:43 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139