Jump to content
  • Advertisement
Sign in to follow this  
Andrew Russell

[web] Ruby-PHP Integration

This topic is 3995 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Simple question: Say I have some Ruby on Rails app, which handles various things for a website including user account management, and I want to integrate some piece of PHP software (anything, say MediaWiki or WordPress) into that same website: Is it possible? Is it sensible? How would one go about doing it? Edit: I'm also interested in the same question for Python (probably TurboGears) + PHP. Thoughts?

Share this post


Link to post
Share on other sites
Advertisement
At my previous job, we would execute Python scripts via command line in PHP using exec(), system() or passthru(), whichever is your preference. What we normally did was create the command to execute with any parameters, placed it in a variable, and then passed it to one of the PHP functions. I'm not sure how this would work on a Windows system running PHP since we used Linux, but you're probably running a *nix based system anyways.

I'm not sure about RoR and PHP though. I'd imagine most CMS' would use session variables, and as such, I don't think that info can be passed from one language to another. You'd probably have to use something like cURL or even GET.

[Edited by - Mathachew on August 11, 2007 4:17:48 PM]

Share this post


Link to post
Share on other sites
That sounds possible. I wouldn't consider it ideal, but for wanting to communicate between two server side languages in this manner, that definitely sounds like a doable solution.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!