Support » Plugin: WP Crontrol » How do you run Curl in this plugin?

  • jcherlin


    I am trying to run a curl function that will just load a specific page once per day. I am using the PHP Cron Event.

    Here is my code:

    // create a new cURL resource
    $ch = curl_init();
    // set URL and other appropriate options
    curl_setopt($ch, CURLOPT_URL, "");
    curl_setopt($ch, CURLOPT_HEADER, 0);
    // grab URL and pass it to the browser
    // close cURL resource, and free up system resources

    I have tried running this every 5 minutes…long story short it’s supposed to hit this page that will then run some scripts that will move some posts into specific categories…If I run the page myself manually everything works…but using this plugin nothing seems to happen.

    I have been using a host that uses cpanel and have been able to use real cron jobs to do this before…but my company is considering moving to another host that does not support cpanel / real cron jobs so I need to find a solution…which is why I am looking at this plugin. Please assist! Thank You!

    • This topic was modified 2 years ago by jcherlin.
Viewing 1 replies (of 1 total)
  • Maybe you can use a webcron service called to trigger the script to run, it very easy to set up and supports multiple configurations.

Viewing 1 replies (of 1 total)
  • The topic ‘How do you run Curl in this plugin?’ is closed to new replies.