public void pht\Thread::addFileTask    ( string $fileName   [, mixed $...globals  ] )

pht\Thread::addFileTaskFile threading


The name of the file to be threaded.


An optional list of arguments for the file. These arguments will be placed into a $_THREAD superglobal, which will be made available inside of the threaded file. All arguments will be serialised (since they are being passed to another thread).