Hi,

the file is intended to be launched from a command line as
Code:
php filename.php

you can certainly try to run it as a page but
  1. you may have problems due to the php.ini configurations (not sure about this, it's some time since I had to work with php)
  2. the file contains a while(true) but the php runtime has a limit in the execution time, after that the execution will be stopped
HTH