From: Mark Meijer Date: 2007-09-30T05:53:24+09:00 Subject: Calling Ruby from PHP fails on "requires 'mysql'" I'm calling Ruby from PHP using system(). This works fine until I add "require 'mysql'". I think it's likely missing a path for the Ruby MySQL gem. I can call the same script successfully from crontab by adding the line $LOAD_PATH << File.expand_path(File.dirname(__FILE__)) Any experience or ideas? cheers -- Posted via http://www.ruby-forum.com/.