I am writing a Wordpress plug in php in and next step is some kind of add on to this plug in.
The add on would scrape data from web, sending forms etc. I have this part almost ready from the time before I had any thoughts about Wordpress plugin - it's coded in ruby using mechanize. I haven't found anything similar to mechanize in php anyway.
But I do not know what is the best way to call my ruby script from Wordpress. Some tasks will be managed by cron. What about the ones based on user request?
- php script only triggers the ruby script. It won't wait/require anything from ruby's output
- Wordpress plugin is fully portable and functional without ruby script. Ruby adds on something more. If somebody requires it.
- everything will be running on my linux server where I have a root access