Get PHP output via Javascript

Get PHP output via Javascript

BY 02 Jun 2016 Web Application Development

Hello,

iam new to the Tizen SDK. Iam an owner of a Gear S2 and want to play a bit around.

 

I have a raspberry pi which hosts an webserver. On this webserver there is a php file which outputs “test”:
The Php-file simply contains:

echo “test”;

Now i want to show this text on the Gear S2 via Javascript. Is it possible to get the output of the php file which lays here:

raspberrypi/test.php

?

 

Thank you very much!

Written by