Hello everybody,
I am running apache 2 and php 5 on a XP computer.
My problem is the following:
When the user submit a file, this file is transmitted to a php page that will call a perl script to process the file. The execution time can take up to one minute and I would like to keep the user informed all along the execution by printing the output of the perl script as it comes. (the perl script prints information about it's status : "15% complete"...)
I can't figure out how, and right now the php hangs until the perl script has finished and I get all the perl script output in the end, in one time.
Here is my code:
<?
(...)
echo "Ok, File upload succeeded<br>";
$file_path= "C:\some\where\upload\".$name;
echo "<br>";
echo system("C:\here\is_my\script.pl $file_path");
unlink($file_path);
(...)
?>
Thanks for any suggestion.