I have the following php script and would like to get the echo into unity. However, when I do www.text
,it gives me the HTML text instead of the echoed value. Can someone point out to me where did I go wrong?
<?php
$a = 'apple';
$b = 'cider';
$c = 'drink';
echo $c;
?>
In Unity I use:
var www : WWW = new WWW("My address");
yield www;
Debug.Log(www.text);
It gives me the whole html page after www.text.
EDIT: It looks like someone had a similar problem but not solved.