Digitalpoint servers down

Discussion in 'Support & Feedback' started by webvivre, Dec 28, 2004.

  1. GuyFromChicago

    GuyFromChicago Permanent Peon

    Messages:
    6,728
    Likes Received:
    529
    Best Answers:
    0
    Trophy Points:
    0
    #21
    I noticed the downtime and am not complaining...and I did donate :)
     
    GuyFromChicago, Dec 28, 2004 IP
  2. joeychgo

    joeychgo Notable Member

    Messages:
    3,368
    Likes Received:
    321
    Best Answers:
    0
    Trophy Points:
    255
    #22
    Im not complaining - But it seems the KW tracker is down / stuck ?
     
    joeychgo, Dec 28, 2004 IP
  3. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #23
    This wasn't meant as a "complaint" but merely an observation. Surely, that didn't step on anyone's toes. Or did it? :confused:

    And "Yes" I too donated to the fund. :)
     
    ResaleBroker, Dec 28, 2004 IP
  4. eduardomaio

    eduardomaio Peon

    Messages:
    450
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #24
    Yes I did :D
     
    eduardomaio, Dec 28, 2004 IP
  5. ViciousSummer

    ViciousSummer Ayn Rand for President! Staff

    Messages:
    3,210
    Likes Received:
    526
    Best Answers:
    0
    Trophy Points:
    308
    #25
    Sheesh guys, I was just kidding...lighten up :D !
     
    ViciousSummer, Dec 28, 2004 IP
  6. ResaleBroker

    ResaleBroker Active Member

    Messages:
    1,665
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #26
    All is good.:) Sorry to hear about Harold!
     
    ResaleBroker, Dec 28, 2004 IP
  7. schlottke

    schlottke Peon

    Messages:
    2,185
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #27
    All of these gestapo-like tactics need to stop Summer! ;) hehe
     
    schlottke, Dec 28, 2004 IP
  8. john_loch

    john_loch Rodent Slayer

    Messages:
    1,294
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    138
    #28
    For those of you who are concerned about connectivity failures (regardless of cause - be it routing or server), the following mod to Shauns source will fix the problem.

    Note that CURL must be included in your build of PHP.. in most cases it is.. this fix is of course specific to PHP.

    Where you find this at the beginning of shauns code:
    
    	if (!function_exists('file_get_contents')) {
    		function file_get_contents($url) {
    			$handle = fopen($url, 'r');
    			$string = fread($handle, 4096000);
    			fclose($handle);
    			return $string;
    		}
    	}
    
    Code (markup):
    Replace with this:
    
    if (!function_exists('file_get_contents')) {
    		function file_get_contents($url) {
    			
    		//Set timeout in secs
    		$timeout=2;
    		
    		//Grab the ad etc
    		$ch = curl_init();
    		curl_setopt($ch, CURLOPT_URL, $url);
    		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,$timeout);
    		curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    		$adval=curl_exec($ch);
    		curl_close($ch);			
    		return $adval;
    
    		}
    }
    
    Code (markup):
    Note that this will, in the event of service outage or ad server down time, result in no ads being shown until connectivity is restored to ad server. Its sole purpose is to provide a timeout, thus avoiding disruption to your site.

    Cheers,

    JL
     
    john_loch, Dec 28, 2004 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #29
    Better still is just use the new ad_network.php file. A 1 second timeout is not really all that practical as there could be factors such as DNS needing to be resolved for example.

    Another problem with the above code is it only would work if you are using a very old version of PHP (where there is no native file_get_contents() function).
     
    digitalpoint, Dec 28, 2004 IP
  10. john_loch

    john_loch Rodent Slayer

    Messages:
    1,294
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    138
    #30
    Ha !

    Yes, well there's always that (wish I'd noticed the thread before i posted) :)

    cheers,

    JL
     
    john_loch, Dec 29, 2004 IP