John L. Singleton wrote: > Hi Jacob, > > Thanks for the response! > >> I know this isn't what you want to hear but.. >> >> PHP is an absolutely awful language when it comes to doing anything >> but web-related work. Well, it's not the language per-se, it's the >> runtime. Even if you figure out how to get your database connections >> reconnected you will run into problems with the PHP garbage >> collector. You will have memory leaks that are impossible to fix. >> You'll end up coding a script to watch your script. > > That's good point. I hadn't really considered the memory angle and I'm > not opposed to just implementing it in Java. The only issue that > kinda, hurm, sucks, is the issue of bypassing my primary persistence > layer (Propel). My attempt to code it in PHP was just to keep things > in PHP... The idea of having a batch script doing an external task was > just a bit too tantalizing, I suppose. But on the plus side, I can > ditch FAM, since Java has built in classes for this sort of thing. > Some of the processing was in Java anyway, on account of the fact that > I'm processing images and Java has superior support for doing non- > trivial image manipulation.
Though this sounds like a script to watch your script, it would be just as easy to create a bash script that listens for your FAM even then calls php batch/your_batch_script.php. But if that is non-trivial - a complete one stop new script in a different language would be good. Though I find long running java processes do tend to do the same thing memory wise.. Leave eclipse running for long and its eaten a fair chunk of memory. -- Nathanael d. Noblet T: 403.875.4613 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
