There is no asynchronous call done during an HTTP GET/POST unless you're running PHP with FastCGI or something. And even then, there's a lot of other parameters. PHP scripts stop when the client connection dies.
If *all* we're looking for is a database backup, there are prewritten scripts that already do that...and there is a free cron service that you can use. I really don't get why we're making this so hard. But maybe that's just me, I'm lazy that way. -- Baz L Web Development 2.0: Web Design, CakePHP, Javascript http://www.WebDevelopment2.com/ On Nov 12, 2007 12:21 PM, technicaltitch <[EMAIL PROTECTED]> wrote: > > That is exactly how I intend to kick this off thanks....if I ever get > it working! > > (By sticking the code after the redirect call the backup will > presumably be dealt with asynchronously.) > > On Nov 12, 4:19 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > > you could also do a 'lazy mans' cron. and just have a script that is > > kicked off the first time a web page is loaded every n-days. I use > > the robots.txt because I really don't care too much if once every > > month late at night it takes a while to load. I also dynamically > > generate that page for a couple of other reasons. > > > > Sam D > > > > On 11/12/07, technicaltitch <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > Thanks very much for your help, but I'm afraid I don't have a > > > workstation to run this from. Also, having this arrive at people's > > > inboxes is incredibly convenient. I'm just at a complete loss as to > > > why the string concatenation doesn't work. > > > > > On Nov 12, 1:08 pm, Guillaume <[EMAIL PROTECTED]> wrote: > > > > If your host allows it, you can use your own workstation and program > a > > > > script that periodically does something like > > > > > > mysqldump -C --host DB_HOSTNAME -u USERNAME -p PASSWORD DB_NAME > > > > > mysdump.sql > > > > > > over the network. > > > > > > Your mysql needs to be reachable from outside the server. > > > > > > My host used to allow it and it was a very convenient and quick > (owing > > > > to the C option) way to backup a database remotely. > > > > > > There can be security hazards though (but sending the dump via email > > > > too). > > > > > > Guillaumehttp://cherryonthe.popnews.com > > > > > > On 12 nov, 10:21, technicaltitch <[EMAIL PROTECTED]> wrote: > > > > > > > surely it is easier to concatenate a string in PHP than change my > > > > > host?! i'm keen to hear of workarounds, but mostly hoping for help > > > > > with the string handling. > > > > > > > our hosting is US$11 per year which is incredibly competitive, we > are > > > > > very happy with their service (faultless in several years) and > > > > > familiar with the setup - and every single cent makes a difference > in > > > > > bolivia. ( they are bargainvault.com and the website i'm replacing > iswww.intiwarayassi.org) > > > > > > > On Nov 11, 9:55 pm, Steve Boyd <[EMAIL PROTECTED]> wrote: > > > > > > > > then changes your host. there is incredibly cheap hosting > everywhere > > > > > > (well within the USA anyhow) that allows you cron jobs + all the > other > > > > > > bells and whistles > > > > > > > > On Nov 12, 8:37 am, technicaltitch <[EMAIL PROTECTED]> > wrote: > > > > > > > > > because it's for a bolivian volunteer organization we're using > > > > > > > incredibly cheap hosting which doesn't allow us cron jobs. i > thought > > > > > > > this would be trivial. > > > > > > > > > On Nov 11, 5:21 pm, AD7six <[EMAIL PROTECTED]> wrote: > > > > > > > > > > On Nov 11, 1:33 pm, technicaltitch <[EMAIL PROTECTED]> > wrote: > > > > > > > > <snip> > > > > > > > > > > Why would you not use mysqldump and a cron job? > > > > > > > > > > AD- Hide quoted text - > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > - Show quoted text - > > > > -- > > (the old fart) the advice is free, the lack of crankiness will cost you > > > > - its a fine line between a real question and an idiot > > > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/-Hide > > quoted text - > > > > - Show quoted text - > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---