Any one figure out how to call an external script using wp-blog-header?
there is a trac ticket closed out with a very vague answer here:
http://core.trac.wordpress.org/ticket/12038
An actual example of how to call this would be appreciated.
Any one figure out how to call an external script using wp-blog-header?
there is a trac ticket closed out with a very vague answer here:
http://core.trac.wordpress.org/ticket/12038
An actual example of how to call this would be appreciated.
For more info, I'm trying to run a script in a parallel process. It runs fine when embedded in the theme page but goes to wp-signup?new= when I initiate it in it's own process.
details on multiple processes here:
http://www.php-code.net/2010/05/running-multiple-processes-in-php/
Try wp-load.php instead. wp-blog-header,php does some pre-setup for loading the front end of the site (ex. theme) which you shouldn't need for the external script.
Also, make sure that you are using a url to an existing site in the network.
If you want people who work with WP networks/multisite to see your thread, use the multisite section of the support forum: http://wordpress.org/support/forum/multisite
I was using
define('WP_USE_THEMES', false);
require_once("/home/html/site/wp-load.php");
It still errored out. I'm loading from the directory side, should i be loading another way?
in the header I have:
$commands = array('/dir/bin/php home/html/site/scripts/sql-update.php');
This is basically an on demand cron job. So I guess I can ask how do you run a script via cron on MU without it error with redirect.
If you are running it from cron, then cron is most likely using the IP address (or localhost) for the hostname.
Have a look at the sunrise.php in http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/.
This topic has been closed to new replies.