How to use variable defined in one php tag in another php tag?
<p>I wrote a php page which has two php tags and one script tag inside it . </p>

<pre><code>&lt;?php
$value = $_GET['hash'];
?&gt;
&lt;script&gt;
function execute(){
&lt;?php
$readfile = file($value);
for ($k=0;$k&lt;=count($readfile)-1;$k++){
$cmd = $readfile[$k];
echo $cmd;}
?&gt;
}
&lt;/script&gt;
</code></pre>

<p>I want to use $value inside another php tag ( like above it has the file I want to open ), but I am not able to do it.Is the scope of variable limited to one php tag ? if yes how can I solve this problem Please help</p>
