Working with PHP and Ruby together! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Working with PHP and Ruby together!

I need to verify some infos in my site I tried it with PHP but I couldn't, and when I try it with Ruby it worked so the problem is Idunno how to post a html form to a Ruby script then redirect the client to another page depending on the statue that the Ruby script gave

16th Feb 2017, 11:45 PM
Mohammed Bermime
Mohammed Bermime - avatar
3 Answers
+ 1
using php fopen() Fclose() fwrite() and a simple database with a HTML form can achieve this why an earth would you make it so complicated when php can achieve what your asking already ;-)
17th Feb 2017, 4:54 AM
John Jeffries
John Jeffries - avatar
0
@John it's not that simple I need to verify the indos from another server using CURL, and CURL needs "http headers" and that site removed them for security reasons
17th Feb 2017, 9:33 AM
Mohammed Bermime
Mohammed Bermime - avatar
0
ah now I understand why you can't use php I'm not familiar with ruby ATM so unsure how to achieve this especially if the site has removed http headers ,maybe if you ask support of the website your trying to get the info for they may allow it if you show them your scripts they may enable it for you
17th Feb 2017, 10:07 AM
John Jeffries
John Jeffries - avatar