Re: [PHP] Advice with some code

2007-12-10 Thread Jochem Maas
Steve Finkelstein wrote: > Hi all, > > I'm having a brain freeze with some simple code that I wrote and now trying > to refactor. > > I have a block of code that looks like this: > > public function backup() public function backup(&$errors) > { > $fname = "$this->dbName.sql

Re: [PHP] Advice with some code

2007-12-10 Thread Robert Cummings
On Mon, 2007-12-10 at 18:25 -0500, Steve Finkelstein wrote: > Hi all, > > I'm having a brain freeze with some simple code that I wrote and now trying > to refactor. > > I have a block of code that looks like this: > > public function backup() > { > $fname = "$this->dbName.sql

[PHP] Advice with some code

2007-12-10 Thread Steve Finkelstein
Hi all, I'm having a brain freeze with some simple code that I wrote and now trying to refactor. I have a block of code that looks like this: public function backup() { $fname = "$this->dbName.sql.$this->zip"; $this->cmd = "mysqldump -Q -u $this->dbUser -p$this->db