Results 1 to 4 of 4

Thread: HTTP wrapper does not support writable connections

  1. #1
    Join Date
    Aug 2004
    Posts
    76

    HTTP wrapper does not support writable connections

    I am getting this warning, what does it means? How can I fix it, please help me.

    Warning: fopen(http://192.168.1.101/boards/areas/oo...0220423.html): failed to open stream: HTTP wrapper does not support writeable connections. in C:\apache\htdocs\boards\threadprocess.php on line 34

    The code that generates this error (last line is line 34):

    $filelocation = $homedirectory . "areas/" . $area . "/" . $region . "/" . $board . "/" . $location . ".html";
    $open = fopen ("$filelocation", "a");

    I downloaded the latest version of php & installed it on my pc. This is being used by me with the help of Apache code along with windows xp pro.

  2. #2
    Join Date
    Dec 2007
    Posts
    1,599
    You can use the local, absolute path because the script will not let you write to a file via http://.

  3. #3
    Join Date
    Jun 2006
    Posts
    623
    From the above reply you just need to replace $homedirectory with $_SERVER['DOCUMENT_ROOT'] OR possibly realpath($_SERVER['DOCUMENT_ROOT']).

  4. #4
    Join Date
    Aug 2004
    Posts
    76
    Nice work out, thank you very much to both.

Similar Threads

  1. ACM wrapper codec support for windows 7
    By Austin Power in forum Operating Systems
    Replies: 4
    Last Post: 13-04-2011, 07:16 PM
  2. Configure smoothwall to just allow http, https and ftp connections
    By Leeland in forum Networking & Security
    Replies: 5
    Last Post: 08-02-2010, 01:24 PM
  3. Replies: 2
    Last Post: 27-11-2008, 07:54 PM
  4. Vista Loses HTTP connections
    By Gluteus in forum Networking & Security
    Replies: 2
    Last Post: 11-11-2008, 01:24 PM
  5. Problem using SSH to redirect HTTP connections
    By Squibbit in forum Networking & Security
    Replies: 8
    Last Post: 22-10-2008, 12:33 PM

Tags for this Thread

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
  •  
Page generated in 1,713,907,349.40907 seconds with 17 queries