[symfony-users] Re: Problem with sessions in batch file

2008-05-01 Thread Tom Haskins-Vaughan
Hi Guys, Would anyone be willing to send me their batch file for sending emails from a mail queue stored in a database? TIA, Tom Tom Haskins-Vaughan wrote: > So, I think I've got it going ok, but I'm getting the following notices > for each time I loop thought my mail action: > > PHP Notice

[symfony-users] Re: Problem with sessions in batch file

2008-04-30 Thread Tom Haskins-Vaughan
So, I think I've got it going ok, but I'm getting the following notices for each time I loop thought my mail action: PHP Notice: Undefined index: REQUEST_URI in /usr/share/pear/symfony/request/sfWebRequest.class.php on line 382 PHP Notice: Undefined index: REQUEST_URI in /usr/share/pear/sy

[symfony-users] Re: Problem with sessions in batch file

2008-04-24 Thread Piers Warmers
> But surely a batch script shouldn't Well, the batch script can definitely be accessing code which accesses session logic. I see your point though... reading the original message more carefully :) >>> sfContext::getInstance()->getLogger()->info('Number of emails >>> ='.count($queuedMail

[symfony-users] Re: Problem with sessions in batch file

2008-04-24 Thread Tom Haskins-Vaughan
Thanks, Piers. But surely a batch script shouldn't have access to the session? Piers Warmers wrote: > Hi Tom, > > I think you will find that the issue is php from the cli won't have > any session abilities... thus the warnings. > > One solution, if the warning are driving you nuts, is to sup

[symfony-users] Re: Problem with sessions in batch file

2008-04-23 Thread Piers Warmers
Hi Tom, I think you will find that the issue is php from the cli won't have any session abilities... thus the warnings. One solution, if the warning are driving you nuts, is to suppress them for selected method calls - eg: @sfContext::getInstance()->getLogger... That will suppress