Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    You should create a PHP cron job. At the bottom of the Tools -> Crontrol screen, click “Add new PHP event”.

    In the “Hook code” box you should enter some PHP which will fetch the URL. An example might be:

    wp_remote_get( 'http://mysite.com/subdirectory1/subdirectory2/myfile.php' );

    This should be all you need.

    Same problem, but that solution did not work for me… Maybe it’s a permissions issue with the file or something? I’m trying to run export-comments.php (in the Disqus plugin’s scripts folder).

    Is there any other way to call a file? I’m sorry, I’m just pretty new and terrible at this…

    Thread Starter Quest The Wordsmith

    (@quest-the-wordsmith)

    Does this method still stand? Was working fine a few months ago when I was doing it. Now, I hit the “run now” option to test it out on a new site and nothing. It does report that the script was executed successfully. Any thoughts?

    I also faced the “problem” the php file was not executed.
    Solution: Make it executable!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Setting up CRON job via URL’ is closed to new replies.