How can a php file wait others?
<p>I do code verification image in PHP and i show it in another page by calling it.</p>

<pre><code>&lt;img src="getVerifyImage.php"/&gt;
</code></pre>

<p>where getVerifyImage.php prepares the image.</p>

<p>I also want to control the code in client side by using java script.</p>

<p>I create a session object which stores the code then i print it inside a hidden field. i read the code by using javascript.</p>

<p>however, the called php complete its run before the image prepared. as a result no session is created. when i try to create my hidden field.</p>

<p>How can i wait my page until getVerifyImage.php's execution is completed ?</p>

<p>Note : i can not use ajax, because ajax does not work on my server.i do not know why,but it is. i tested several times with other servers. my ajax codes did not work on this server.</p>
