Skip to content

Instantly share code, notes, and snippets.

@Mamaduka
Created February 11, 2014 19:13
Show Gist options
  • Save Mamaduka/8941941 to your computer and use it in GitHub Desktop.
Save Mamaduka/8941941 to your computer and use it in GitHub Desktop.
Setting up Cron on OVH

Because OVH doesn't support URL for Cron, we need to create and add custom PHP file:

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'http://www.lovelysecret.be/wp-cron.php?f8c7891ad19adc
0dde19beb11eb67b2b&action=wysi
ja_cron&process=all');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION,true);
curl_setopt($ch, CURLOPT_AUTOREFERER,true);
echo curl_exec($ch);
curl_close($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment