• Resolved jstallard

    (@jstallard)


    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

    (@jstallard)

    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.