Yii Framework Forum: PHP and R - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

PHP and R Rate Topic: ***** 1 Votes

#1 User is offline   anamika 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 13-July 12

Posted 13 July 2012 - 03:12 PM

Hi, I am new to PHP. Please help me with the following question:
Is there any way I can integrate R with PHP in yii framework.

Thanks in advance.
0

#2 User is offline   Wanderson 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 71
  • Joined: 20-February 09
  • Location:Rio de Janeiro, Brazil

Posted 13 July 2012 - 04:54 PM

View Postanamika, on 13 July 2012 - 03:12 PM, said:

Hi, I am new to PHP. Please help me with the following question:
Is there any way I can integrate R with PHP in yii framework.

Thanks in advance.



Using the php “exec” function
0

#3 User is offline   anamika 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 13-July 12

Posted 15 July 2012 - 06:47 PM

View PostWanderson, on 13 July 2012 - 04:54 PM, said:

Using the php “exec” function



Thank you for your response. Can you please give any example of calling an R function? If I want to call a R function(with parameters) and store the output returned by R in php variable-how can I do that?

Is R-php compatible with yii framework?
0

#4 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 16 July 2012 - 03:32 AM

There are no languag bindings for R in PHP, so you've got to invoke the R environment from the shell as Wanderson suggested. See here: http://php.net/manua...nction.exec.php
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#5 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,387
  • Joined: 17-January 09
  • Location:Russia

Posted 16 July 2012 - 04:45 AM

http://www.r-blogger...ting-php-and-r/
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users