Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’m running WordPress 2.6.1 on IIS. I don’t have cron, but I can set up scheduled tasks through my control panel. That and the changes below, gleaned from the posts above, worked for me. However, since scheduled tasks on my hositng account can be no less than hourly, that’s how often the posts can appear, regardless of the specific time they are scheduled. A minor inconvenience.

    in /wp-includes/cron.php

    REPLACED:

    $argyle = @ fsockopen( $parts[‘host’], $_SERVER[‘SERVER_PORT’], $errno, $errstr, 0.01 );
    if ( $argyle )
    fputs( $argyle,
    “GET {$parts[‘path’]}?check=” . md5(DB_PASS . ‘187425’) . ” HTTP/1.0\r\n”
    . “Host: {$_SERVER[‘HTTP_HOST’]}\r\n\r\n”
    );
    }

    WITH:

    if ( $argyle ){
    fputs( $argyle,
    “GET {$parts[‘path’]}?check=” . wp_hash(‘187425’) . ” HTTP/1.0\r\n”
    . “Host: {$_SERVER[‘HTTP_HOST’]}\r\n\r\n” );
    fflush($argyle);
    fgets($argyle);
    fclose($argyle);
    }
    }

    in /wp-cron.php

    REMOVED:

    if ( $_GET[‘check’] != wp_hash(‘187425’) )
    exit;

    [b]in control panel[/b]

    Set up scheduled task in control panel for /wp-cron.php.

Viewing 1 replies (of 1 total)