write/create new file using IIS, XP Pro

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

  1. #1

    Default write/create new file using IIS, XP Pro

    Hey all,
    This is driving me nuts. Works great with apache on same xp pro box, but I
    can't get it to work on IIS

    $handle = fopen("file.txt", "wb");

    In IIS admin I gave write rights to the whole folder. I tried full path
    name (c:\\inetpub\\wwwroot\file.txt)
    any ideas?
    In explorer, the folder is shown as read only. I take that off, apply, and
    reopen the properties again and it's back to read only. Could that be it?
    how do I change that?

    here's the error message

    Warning: fopen(file.txt) [function.fopen]: failed to create stream:
    Permission denied in c:\inetpub\wwwroot\bookmarks\testwrite.php on line 27

    thanks in advance,
    brian


    BB Guest

  2. Similar Questions and Discussions

    1. Error 1 : Can't create/write to file
      I'm really not able to resolve this. I have a SELECT...INTO OUTFILE query If I execute it I receive: Error 1 : Can't create/write to file...
    2. write value from flash file to an external file
      how can I write value from flash file to an external file like (text file or xml file)
    3. advice needed... cf write data to xml file for use in flash app thatuses xml file
      I'm wondering if it is possible to use CF to: 1) connect to existing db; 2) get specific data from table; 3) write it to an xml file that would...
    4. Read/write Excel and create pdf??
      Alright, how about a way to read and write to the Excell files?? Will MasterApp do this??
    5. log file sync vs. log file parallel write ?
      On 11 Dec 2002 14:48:41 -0800, bchorng@yahoo.com (Bass Chorng) wrote: The writes requested by a log file sync are evidently processed by...
  3. #2

    Default Re: write/create new file using IIS, XP Pro

    In article <Z7-dnWpX59kKgAaiRVn-uA@comcast.com>, BB <dragonb@spam.com>
    wrote:
    > Hey all,
    > This is driving me nuts. Works great with apache on same xp pro box, but I
    > can't get it to work on IIS
    >
    > $handle = fopen("file.txt", "wb");
    >
    > In IIS admin I gave write rights to the whole folder. I tried full path
    > name (c:\\inetpub\\wwwroot\file.txt)
    > any ideas?
    > In explorer, the folder is shown as read only. I take that off, apply, and
    > reopen the properties again and it's back to read only. Could that be it?
    > how do I change that?
    >
    > here's the error message
    >
    > Warning: fopen(file.txt) [function.fopen]: failed to create stream:
    > Permission denied in c:\inetpub\wwwroot\bookmarks\testwrite.php on line 27
    >
    > thanks in advance,
    > brian
    >
    >
    Have you set NT permissions on the file to allow IUSR_*yourservername*
    full access?
    Right-click the file, select properties -> security, if the IUSR_ is
    not there then add it & give complete control

    --
    Richard Manley-Reeve
    Web & Multimedia Developer
    Gateshead College, Tyne & Wear

    (edit my email address before replying)


    ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
    [url]http://www.newsfeed.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
    Rich Manley-Reeve Guest

  4. #3

    Default Re: write/create new file using IIS, XP Pro

    Thanks so much, that was it!


    "Rich Manley-Reeve" <MY_FIRSTNAME.manley-reeve@gateshead.ac.uk> wrote in
    message news:271020031924504403%MY_FIRSTNAME.manley-reeve@gateshead.ac.uk...
    > In article <Z7-dnWpX59kKgAaiRVn-uA@comcast.com>, BB <dragonb@spam.com>
    > wrote:
    >
    > > Hey all,
    > > This is driving me nuts. Works great with apache on same xp pro box,
    but I
    > > can't get it to work on IIS
    > >
    > > $handle = fopen("file.txt", "wb");
    > >
    > > In IIS admin I gave write rights to the whole folder. I tried full path
    > > name (c:\\inetpub\\wwwroot\file.txt)
    > > any ideas?
    > > In explorer, the folder is shown as read only. I take that off, apply,
    and
    > > reopen the properties again and it's back to read only. Could that be
    it?
    > > how do I change that?
    > >
    > > here's the error message
    > >
    > > Warning: fopen(file.txt) [function.fopen]: failed to create stream:
    > > Permission denied in c:\inetpub\wwwroot\bookmarks\testwrite.php on line
    27
    > >
    > > thanks in advance,
    > > brian
    > >
    > >
    > Have you set NT permissions on the file to allow IUSR_*yourservername*
    > full access?
    > Right-click the file, select properties -> security, if the IUSR_ is
    > not there then add it & give complete control
    >
    > --
    > Richard Manley-Reeve
    > Web & Multimedia Developer
    > Gateshead College, Tyne & Wear
    >
    > (edit my email address before replying)
    >
    >
    > ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
    News==----
    > [url]http://www.newsfeed.com[/url] The #1 Newsgroup Service in the World! >100,000
    Newsgroups
    > ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
    =---


    BB Guest

  5. #4

    Default Re: write/create new file using IIS, XP Pro

    Thank you very much. It's a little tip & great help for beginners.
    sakhdad 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