Title: WordPress script context
Last modified: August 19, 2016

---

# WordPress script context

 *  [are79](https://wordpress.org/support/users/are79/)
 * (@are79)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/wordpress-script-context/)
 * 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?

Viewing 1 replies (of 1 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/wordpress-script-context/#post-665301)
 * “_What is a proper way to do this?_“
 * That all depends. But see:
 * [http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress](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.

Viewing 1 replies (of 1 total)

The topic ‘WordPress script context’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/wordpress-script-context/#post-665301)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
