I'm creating a WordPress plugin and would like to know what it takes to access the database?
I used the following two lines:
include_once("{$_SERVER['DOCUMENT_ROOT']}/wp-config.php");
include_once("{$_SERVER['DOCUMENT_ROOT']}/wp-includes/wp-db.php");
Do I need them both? It seems like some plugins that access the db don't use the above two lines?
In addition, what does the below line mean? What is ABSPATH and WPINC?
include_once(ABSPATH . WPINC . '/rss.php');