php writing files and permissions

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default php writing files and permissions

    Hi,

    I have a php function that uploads images to a directory on my server,
    I've just changed hosting company and now I get the following error msg:-

    failed to open stream: Permission denied in

    I can get round this by chmod'ing to 777..... but I don't really want to
    do that... do I???

    pointers appreciated.

    Simon Redmond Guest

  2. Similar Questions and Discussions

    1. Setting writing permissions to a folder.
      At ASP.Net application I have a folder which contains the files, being updated by the users. The application deployed by Web Setup project. The...
    2. #24597 [Bgs]: Writing error_log w/o write permissions sends Apache to 100%CPU/Seg faults
      ID: 24597 User updated by: jordan at tumyeto dot net Reported By: jordan at tumyeto dot net Status: Bogus Bug Type:...
    3. #24597 [Opn->Bgs]: Writing error_log w/o write permissions sends Apache to 100%CPU/Seg faults
      ID: 24597 Updated by: sniper@php.net Reported By: jordan at tumyeto dot net -Status: Open +Status: ...
    4. #24597 [NEW]: Writing error_log w/o write permissions sends Apache to 100%CPU/Seg faults
      From: jordan at tumyeto dot net Operating system: RedHat 2.4.7-10smp PHP version: 4.3.2 PHP Bug Type: Apache related Bug...
    5. [PHP] about writing permissions
      Hello, On Tuesday July 8 2003 15:42, George Papatheodorou wrote: if user2 other than owner is trying to write to file which does not have...
  3. #2

    Default Re: php writing files and permissions


    "Simon Redmond" <nospam@sibass.com> schreef in bericht
    news:pan.2004.09.04.09.09.25.617774@sibass.com...
    > Hi,
    >
    > I have a php function that uploads images to a directory on my server,
    > I've just changed hosting company and now I get the following error msg:-
    >
    > failed to open stream: Permission denied in
    >
    > I can get round this by chmod'ing to 777..... but I don't really want to
    > do that... do I???
    >
    > pointers appreciated.
    >
    Simon ,

    before uploading the file chmod to 777, upload the file , change chmod back.

    HTH Rob


    Rob Guest

Posting Permissions

  • You may not post new threads
  • You may 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