Title: Accessing WordPress functions from external php program
Last modified: August 21, 2016

---

# Accessing WordPress functions from external php program

 *  Resolved [jstallard](https://wordpress.org/support/users/jstallard/)
 * (@jstallard)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/accessing-wordpress-functions-from-external-php-program/)
 * I’m writing a program to import user info from TYPO3 to my WordPress multisite
   and don’t want sensitive info (user info and TYPO3 database password which is
   visible in the program) accessible over the net. So I want to run my program 
   from the command line.
 * I want to use WordPress functions for creating the users (seems safer). But if
   I load wp-load.php I can only access my debug output via a browser.
 * I’ve tried outputting to a file, and that works when I run the program from a
   browser, but when I run the program from the command line, the file isn’t even
   created. That means I can keep user info secure but not the TYPO3 database password.
 * So, how do I run WordPress functions from a program run from the command line**
   and** send output to my terminal or to a file?
    Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [jstallard](https://wordpress.org/support/users/jstallard/)
 * (@jstallard)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/accessing-wordpress-functions-from-external-php-program/#post-5138997)
 * Have found a way around this. Am using a browser and passing the password in 
   as a variable in the URL. Still goes over the net but it’s unclear that it’s 
   a password.

Viewing 1 replies (of 1 total)

The topic ‘Accessing WordPress functions from external php program’ is closed to
new replies.

## Tags

 * [browser](https://wordpress.org/support/topic-tag/browser/)
 * [output](https://wordpress.org/support/topic-tag/output/)
 * [wp-load](https://wordpress.org/support/topic-tag/wp-load/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [jstallard](https://wordpress.org/support/users/jstallard/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/accessing-wordpress-functions-from-external-php-program/#post-5138997)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
