note 33976 added to function.fopen

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

  1. #1

    Default note 33976 added to function.fopen

    This was a major headache for me but a very simple fix:

    instead of using the actual path to your file like this:
    $handle = fopen('http://www.yoursite.com/dir/file.txt', 'a')

    use the directory to your file as you see in your FTP program:
    $handle = fopen('/home/yoursite/www/www/dir/file.txt', 'a')

    Also, make sure that exact directory has public read/write permissions enabled. I believe some other people may have tried to explain what I have said above, but to a beginner it was hard to pick up.
    ----
    Manual Page -- [url]http://www.php.net/manual/en/function.fopen.php[/url]
    Edit Note -- [url]http://master.php.net/manage/user-notes.php?action=edit+33976[/url]
    Delete Note -- [url]http://master.php.net/manage/user-notes.php?action=delete+33976&report=yes[/url]
    Reject Note -- [url]http://master.php.net/manage/user-notes.php?action=reject+33976&report=yes[/url]

    dave@mixd.net Guest

  2. Similar Questions and Discussions

    1. note 33811 added to function.fopen
      you are nothing but a fly by night piece of GARBAGE company with NO morals or STANDARDS with a FICTICIOUS removal address!! TAKE MY NAME OFF YOUR...
    2. note 33797 added to function.fopen
      <?PHP show_source("function.fopen.php"; ?> That one is very useful. ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit...
    3. note 33763 added to function.fopen
      I just want to be taken off your mailing list, thai I did not subscribe to.Please tell me how to do this. ---- Manual Page --...
    4. note 33652 added to function.fopen
      Dear Advertiser I have atleast 50 times unsubscribed your add. But you are still continue to send your add. I once again request you to please...
    5. note 33611 added to function.fopen
      It seems that fopen() errors when you attempt opening a url starting with HTTP:// as opposed to http:// - it is case sensitive. In 4.3.1...
  3. #2

    Default note 33976 deleted from function.fopen by didou

    Note Submitter: [email]dave@mixd.net[/email]

    ----

    This was a major headache for me but a very simple fix:

    instead of using the actual path to your file like this:
    $handle = fopen('http://www.yoursite.com/dir/file.txt', 'a')

    use the directory to your file as you see in your FTP program:
    $handle = fopen('/home/yoursite/www/www/dir/file.txt', 'a')

    Also, make sure that exact directory has public read/write permissions enabled. I believe some other people may have tried to explain what I have said above, but to a beginner it was hard to pick up.
    didou@php.net 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