The RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent licensing related requests from Students/Faculty members, please use the Altair academic forum here.
Looking for a sample to execute PHP using Execute Program
thomas_wiedmann
Member Posts: 60 Maven
I'm looking for a sample to execute PHP (Skripts) using "Execute Program". Current I get some error. Rapidminer can't find php. Please look at images.
Thanks,
Thomas
Tagged:
0
Answers
some add:
command: cmd /c start "D:\Wiedmann\Tools\php-5.6.13-Win32-VC11-x86" php -h
sems to be a little bit better. Is this the right way to do so?
may this
but my php skript did'nt start. Maybe I get empty CMD console, but php did'nt run the script.
Seems difficult. Any comment?
Hi Thomas,
from my experience it is like this: If you can execute that script in your normal Windows cmd, then it should also be able to run from within RapidMiner.
Can you tell a little bit more of your setup? Which Windows version are you using? Is the path you posted your project or your php installation directory?
I would think that something like
should work.
Cheers
Jan
Thanks Jan. Thats true, but my problem is, that PHP don't find the PIPE Data from "Write CSV".
1) Model Looks like attached image..
2) parameter from Execute Program looks like..
command: cmd /c start \Wiedmann\Tools\php-5.6.13-Win32-VC11-x86\rapidminer-start-php.bat
working directory: \Wiedmann\Tools\php-5.6.13-Win32-VC11-x86\
3) rapidminer-start-php.bat looks like
4) rapidminer.php looks like..
Problem:
PHP get no piped information. PHP ist readin on STDIN and wait forever. My breakpoint after shows me this Box
PHP script is still waiting on echo "php-2" forever. PHP waits on console INPUT.
Big Question: Why "Write CSV" Data are not piped to "Execute Program" ?
EDIT
This for example work well and PHP get piped data from dir.