Support » Everything else WordPress » Directly calling WP php files rather than getting the page

  • dcell59

    (@dcell59)


    This came up in a discussion of running cron jobs. What is the difference between using wget or a web browser to get a page and just calling /usr/bin/php to interpret the file?

    Do the php files load everything that is needed, or do they need WordPress running under a web server to load all of this stuff?

Viewing 2 replies - 1 through 2 (of 2 total)
  • andywar65

    (@andywar65)

    Don’t know if I understood precisely your question, but page content is stored in mysql tables, so if you don’t load all WP functionalities you won’t be able to retrieve them.

    dcell59

    (@dcell59)

    More specifically, if you run /usr/bin/php wp_cron.php from a command line or cron, will it work the same as using wget on the URL.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Directly calling WP php files rather than getting the page’ is closed to new replies.