Mixing PHP and Ruby together... opinions and suggestions.

Reply

Join Date: Feb 2008
Posts: 462
Reputation: tiger86 is an unknown quantity at this point 
Solved Threads: 10
tiger86's Avatar
tiger86 tiger86 is offline Offline
Posting Pro in Training

Mixing PHP and Ruby together... opinions and suggestions.

 
0
  #1
26 Days Ago
Hey;
I have 6 months of work done in PHP and I really don't want to re-invent the wheel but I want to use some Ruby in my site. Is it possible to "mix languages" like PHP and ruby or will I run into some major problems? I would really appreciate your opinion. If your advice is helpful to my situation I'll add to your reputation.
If I helped you I would appreciate it if you would give me some reputation.
read my actionscript to english blog
Currently developing what should be social network 2.0 offline.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 52
Reputation: chaines51 is an unknown quantity at this point 
Solved Threads: 3
chaines51 chaines51 is offline Offline
Junior Poster in Training
 
0
  #2
11 Days Ago
It's completely plausible, as long as you're not trying to mix the two into the same file (it'd still be possible, just inefficient, as it'd have to be processed twice). And, it depends on what kind of site you're trying to build. For example, if you're building a 'web-app' where a large number of your PHP scripts just return data, and are never actually 'viewed' by a user, then your life will be quite simple.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 178
Reputation: codejoust is an unknown quantity at this point 
Solved Threads: 17
codejoust's Avatar
codejoust codejoust is offline Offline
Junior Poster
 
0
  #3
11 Days Ago
In short. No.
However, if, as noted before, you are using php files for data access, you can use pure ruby (or sinatra-like frameworks) to work with the data.
Rails will be extremely hard to mix code.
If your starting from scratch, learn ruby properly, and you won't need all that php code (if it's just crud code).
The whole idea of rails is to keep it clean, and what your suggesting isn't that clean. (would require a net://http to your own server, or using php command-line interface).
Reply With Quote Quick reply to this message  
Reply

Tags
php, ruby

Message:



Similar Threads
Other Threads in the Ruby Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC