I want to create a separate script to serve requests from some external server. I want this script to have wordpress blog context. I need to access database using wpdb and to read/write options. What is a proper way to do this?
I want to create a separate script to serve requests from some external server. I want this script to have wordpress blog context. I need to access database using wpdb and to read/write options. What is a proper way to do this?
"What is a proper way to do this?"
That all depends. But see:
http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress
Including wp-blog-header.php makes all WordPress functions and global vars available. Under some conditions you may only need (or want) to include wp-config.php.
This topic has been closed to new replies.