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!
- The topic ‘Accessing WordPress functions from external php program’ is closed to new replies.