Re: [PHP] How to run .sql files using php

2005-07-14 Thread Raffael Wannenmacher
or execute a shell command $ret = `mysql -u[user] -p[password] -h[host] [db_name] < file.sql`; glumtail wrote: I think it's better to split the SQL into pieces line 1: create table line 2: insert into . $sql = 'create table' $sql = 'insert into ...' 2005/7/13, Shaw, Chris - Acc

Re: [PHP] Re: OO in PHP5.0 - Referencing Object or not?!

2004-08-22 Thread Raffael Wannenmacher
Daniel Schierbeck wrote: Raffael Wannenmacher wrote: hello together look at the following code ... why is this .. -- code start if ( is_object($this->getManagerObject()->getDataFieldManager()) ) { for ( $j = 0; $j < $this->getManagerObject()->getDataFieldManager()->getCo

[PHP] OO in PHP5.0 - Referencing Object or not?!

2004-08-22 Thread Raffael Wannenmacher
hello together look at the following code ... why is this .. -- code start if ( is_object($this->getManagerObject()->getDataFieldManager()) ) { for ( $j = 0; $j < $this->getManagerObject()->getDataFieldManager()->getCount(); $j++ ) { if ( $this->