My friend can not schedule posts in v 2.6.1 and I am assuming that this is an issue between wp-cron.php and the server. I made a file with the code mentioned above with the required changes
<?php
$argyle = fsockopen( 'example.com', 80, $errno, $errstr, 0.01 );
if ( $argyle ) {
fputs( $argyle, "GET /wp-cron.php HTTP/1.0\r\n"
. "Host: example.com\r\n\r\n" );
echo "Success sending the GET.\n";
} else {
echo "Error: $errstr ($errno)\n";
}
?>
and tested this on her host and on mine - I am running the same version of WordPress. On her host I got Error 110 Connection Timeout. On mine where I can schedule posts I got 'Success Sending the Get'.
What I want to know is what is the best way to explain this to the host so they don't automatically say it's a wordpress problem?
Thanks