php

php ( string command ) : void

Execute a PHP code. This code will be executed when the stack of commands will be sended (with the function send() or all cycles if you use this solution).
Do not forget ; at the end of commands to respect the PHP syntax.

Example

Download an image on a server.
idImage=1
php('if('+ idImage +'>1) { file_put_contents("../../upload/", file_get_contents("http://site.com/image'+ idImage +'.png") ); }')


See also

phpNow

Parameters

command