> On Mar 26, 2020, at 12:41 PM, Rafael Mora <rafael.mora.guti@xxxxxxxxx> wrote: > > maybe using 'require_once(...)' > > > ---------------------------------------------- > Atentamente/Best regards > > Rafael Mora > Cel/Mob: +58-414-493.31.39 > Cel/Mob: +57-321-755.37.69 > Twitter @titanve > > > On Thu, Mar 26, 2020 at 2:38 PM Jeffry Killen <jekillen@xxxxxxxxxxx> wrote: > Sorry: > > > > Fatal error: Cannot declare class _ASYNC_SAMPLER, because the name is > > already in use in /path/lab_8/php/asyncSamplerClass.php on line 14 > > I found out why this is occurring. There is another instance of requiring the same source file > in another class def constructor function. It is in the _CS_FIND class def. So the error is > probably from this even though the _CS_FIND instance is created AFTER the call to require > that is causing the error. > JK Thank you for the suggestion; I have another version of asyncSampler that is not a class definition. I created the class def so I could use and instance of it inside other class definitions. But that may also be a problem if there is a number of interdependent classes using the same class def. This is for sampling async submission processing progress. It just writes various designated variable values to a text file. The final print or echo statement before calling exit is the only one that can be used in async processing. .... header('Content-type:'.$contentType); print (out put); exit; ?>