backticks exist in ruby too, and you’ll get back the output of the
command which may be useful in working out what’s gone wrong.
The most likely thing is the the current directory isn’t what you
think it is (ie test.php isn’t in it)
I am running this under a Windows 2003 Server, using Mongrel, Ruby on
Rails 1.2.5.
I am interested in getting the php script running, not so much
returning a value. The php script is supposed to run some queries
against an AS/400 to update a table. I would like to do this only in
Rails but I couldn’t get the ODBC connector to work, it seems it
doesn’t support the AS/400 database system. In the past I have been
successful doing this with PHP, so I’m trying this approach of
triggering the php script from within the Rails application.