PHP using ruby returning output (using metainspector) -



PHP using ruby returning output (using metainspector) -

i'm creating php page ssh phone call .rb (ruby) file.

rb file require 'metainspector' page = metainspector.new("www.hln.be") puts page.image

when creating php file next code (php):

$cmd = "ruby facescrape.rb"; $last_line = system($cmd, $retval); echo $last_line . ' echo $retval;

this returns value 1.

however 2 things :

when running same command in ssh, print page.image correctly. when alter rb file , instance set lastly line

puts "test"

this value returns correctly print correctly aboven php code.

i don't why printing page.image works in ssh won't work using php code. tried using exec() instead of system().

thank in advance! kind regards,

kurt colemonts

php ruby linux

Comments

Popular posts from this blog

Php operator `break` doesn't stop while -

ubuntu - Bash Script to Check That Files Are Being Created -

vim: Search & replace -