Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 18-08-2008
Member
 
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.
Reply With Quote
  #2  
Old 18-08-2008
Member
 
Join Date: Dec 2007
Posts: 1,592
You can use the local, absolute path because the script will not let you write to a file via http://.
Reply With Quote
  #3  
Old 18-08-2008
Member
 
Join Date: Jun 2006
Posts: 620
From the above reply you just need to replace $homedirectory with $_SERVER['DOCUMENT_ROOT'] OR possibly realpath($_SERVER['DOCUMENT_ROOT']).
Reply With Quote
  #4  
Old 18-08-2008
Member
 
Join Date: Aug 2004
Posts: 76
Nice work out, thank you very much to both.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "HTTP wrapper does not support writable connections"
Thread Thread Starter Forum Replies Last Post
ACM wrapper codec support for windows 7 Austin Power Operating Systems 4 13-04-2011 07:16 PM
Configure smoothwall to just allow http, https and ftp connections Leeland Networking & Security 5 08-02-2010 01:24 PM
Tips for Increasing or Changing Maximum Simultaneous HTTP and Downloads Connections to Web Server JPGargoyle Tips & Tweaks 2 27-11-2008 07:54 PM
Vista Loses HTTP connections Gluteus Networking & Security 2 11-11-2008 01:24 PM
Problem using SSH to redirect HTTP connections Squibbit Networking & Security 8 22-10-2008 12:33 PM


All times are GMT +5.5. The time now is 11:35 AM.