WordPress.org

Ready to get started?Download WordPress

Forums

Including config.php in AJAX Plugins (2 posts)

  1. menslow
    Member
    Posted 4 years ago #

    Hello,
    I just attended Mark Jaquith's excellent talk on secure plugin development at WordCamp NYC. He mentioned that when calling a ajax processing script we should not use...

    require_once("../../../wp-config.php");

    ...because it prevents people from moving the config.php file out of the root WP directory. I can't remember what to use instead though. Anyone?

    Thanks!

  2. menslow
    Member
    Posted 4 years ago #

    To answer my own question here... @williamsba forwarded this AJAX in Plugins article to me:

    codex.wordpress.org/AJAX_in_Plugins

    Thanks again @williamsba!

Topic Closed

This topic has been closed to new replies.

About this Topic