file_get_contents should load after clicking a link
<p>I'm passing a value to a string using the file_get_contents function as below:</p>

<pre><code>$value=file_get_contents('http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId='.$app.'&amp;from='.$fr.'&amp;to='.$tol.'&amp;text='.urlencode($lastline));

$speaktext="http://api.microsofttranslator.com/V2/http.svc/Speak?appId=$app&amp;language=$tol&amp;format=audio/wav&amp;text=$value";
</code></pre>

<p>I'm using the variable $speaktext in the code below to output some sound out of it.</p>

<pre><code>$sound="&lt;object data=\"$speaktext\" classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\"width=\"200\" height=\"30\"&gt;
  &lt;param name=\"url\" value=\"$text\"/&gt;
  &lt;param name=\"autostart\" value=\"false\"/&gt;
&lt;/object&gt;";
</code></pre>

<p>When I pass the $value variable to the $speaktext variable it first renders the whole $value variable (receives data from api.microsofttranslator.com) and the passes it to $speaktext.</p>

<p>Is there a way that the $value variable is rendered exactly when I use the <code>&lt;object data=...&gt;</code>?  I mean when the user clicks the play button on the <code>&lt;object&gt;</code>, It renders $value, passes it to $speaktext and the file will be played.</p>

<p>I know the question seems a bit hard to understand but I couldn't find a better way to explain it.</p>
