1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Custom fsockopen errors ?

Discussion in 'PHP' started by domainsurfer, Nov 3, 2007.

  1. #1
    The fsockopen() returns an error

    i would like it to display my own CUSTOM error message (within the script).
    SEMrush
    How do i do that ? Thanks in advance..
     
    domainsurfer, Nov 3, 2007 IP
    SEMrush
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
    if (!$fp = @fsockopen($host, .....))
    {
        echo 'Custom message.';
    }
    
    PHP:
     
    nico_swd, Nov 3, 2007 IP
  3. domainsurfer

    domainsurfer Well-Known Member

    Messages:
    922
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thanks a ton , repped u..
     
    domainsurfer, Nov 3, 2007 IP