How to integrate a custom PHP file with WordPress

You can use WordPress functionality in a custom PHP script. A few lines of code on top of the PHP fie will do the trick. Consequently the script will be able to use WP global object variables like $wpdb.

Read more