So I'm putting in some CIM functionality in a Drupal 7 site I'm building. I put the relevant parts of the sample scripts in a particular rule and then activated it, but I keep getting an error like this:
Warning: fsockopen(): unable to connect to ssl://:443 (No connection could be made because the target machine actively refused it. ) in send_request_via_fsockopen() (line 30 of C:\inetpub\wwwroot\myDrupal\includes\util.php).
I can run the sample php scripts dirtectly from the server and they work fine, but when I put the PHP into my site I get this exact error. Has anyone encountered this before?
I'm pretty new at the server side of things. Thanks in advance for any help you can give.
Solved! Go to Solution.
11-06-2011 03:30 PM
It sounds like the URL isn't making it to the connection function. An easy way to verify that would be to go to line 30 of the file referenced in the error and print out the value it's passing to fsockopen() and then exit. If the value has nothing in it, you then backtrack through the site code until you find where the URL got lost.
11-06-2011 04:34 PM
It sounds like the URL isn't making it to the connection function. An easy way to verify that would be to go to line 30 of the file referenced in the error and print out the value it's passing to fsockopen() and then exit. If the value has nothing in it, you then backtrack through the site code until you find where the URL got lost.
11-06-2011 04:34 PM
That did it. Thanks!
11-07-2011 07:37 PM