OK, guys. Sorry for not getting back to you earlier but I had to put
this project on the back burner for a while while I worked on a
another project (Code Igniter -- eurgh!). Anyway, I managed to
reconnect to the database after I downloaded the file by adding the
following:

              $conn =
Doctrine_Manager::connection('mysql://username:passw...@host/database');
              // Update log entry
              $importLogEntry =
Doctrine::getTable('CtMlsDataImportLogEntry')->find($importLogEntryId);
              $importLogEntry->download_completed_at = date('Y-m-d H:i:s');
              $importLogEntry->save($conn);

I had to enter the connection details manually. I'm going to try to
find out how to get them from the config now...

Anyway, thanks for all your help!

Tom

On Wed, Sep 30, 2009 at 11:14 AM, Mariusz Sasinski
<[email protected]> wrote:
>
>
>>
>> Unfortunately, I don't really have access to cron jobs. Well, I can
>> schedule jobs, but I can't run any shell commands. I can just call php
>> files.
>
>
> I'm not sure if I fully understand how your application works but maybe you
> could  create a cron job that will only be responsible for downloading files 
> to
> a local folder and unzipping them.  Then use your current script to process
> those files using that local storage. This way your script won't have to wait
> for files to finish downloading.
>
> Mariusz
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to