I print two statements to trace the php file. One statement before calling perl and one after it. Both statements are printed! This means that perl was executed! But the output of the perl ( creating some files) is produced after 15 min!
echo "<p>Your job id is $jobid.</p>"; echo "<p>Please wait here to watch the progress of your job.</p>"; //above echo are displayed pclose(popen("start /b perl blast.pl \"$basicParam\" \"$advanceParam\"", "r")); //above call the perl if(file_exists($filename)) //filename generated from the perl but it does not exist before 15 min echo "<p>Your result are:</p>"; //it does not displayed
In order to test these files outside the i2b2 platform, I create a new folder and put it in my web root directory. I place in it the HTML file, PHP file, and perl file. I run the html in my web browser and got the result in just half minute!
Why this behavior?