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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -