Re: DataObjects: Rows inserted in triplicate

From: Date: Tue, 22 Feb 2005 21:07:44 +0000
Subject: Re: DataObjects: Rows inserted in triplicate
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17624@lists.php.net to get a copy of this message
On Tue, 22 Feb 2005 12:33:52 -0800, Sasha Sklar <Sasha.Sklar@craveonline.com> wrote: > This is the issue: every insert I perform is generating 3 rows instead > of 1. > > I'm using DataObjects with manually created classes, I can't use the > generator do to permission issues. > What permissions issues? If you can't run it via CLI for some reason you can always run the generator from the web. Just set the permissions on the class dir (and files) to 777. Here's a simple script I use to update some of my DOs from the web: <?php $_SERVER['argv'][1] = '/path/to/DataObject.ini'; include('/path/to/PEAR/DB/DataObject/createTables.php'); system('chmod 777 /path/to/DataObjects/*'); ?> If you need more help, what's the output of the script you gave? Is that the entirety of the script or is there more? What version of PHP are you using? -- Justin Patrin

« previous php.pear.general (#17624) next »