fsockopen() access denied

Discussion in 'PHP' started by ramachandran, Dec 9, 2009.

  1. #1
    hi ,

    i am trying to use fsockopen() and i am getting the following error


    Warning: fsockopen() [function.fsockopen]: unable to connect to api.mailchimp.com:80 (Permission denied)

    Please advice ASAP,
     
    ramachandran, Dec 9, 2009 IP
  2. kingsoflegend

    kingsoflegend Well-Known Member

    Messages:
    202
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #2
    It seems the remote host is actively refusing the connection so it's probably not an error from your end. Your best bet is to mail them and ask for support.
     
    kingsoflegend, Dec 9, 2009 IP
  3. Christian Little

    Christian Little Peon

    Messages:
    1,753
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's also possible that fsockopen is not allowed on your server. If you are on a shared hosting account it's pretty common for it to be restricted.
     
    Christian Little, Dec 9, 2009 IP