Re: [PHP] Doctrine madness!

2011-06-17 Thread Jim Lucas
On 6/17/2011 12:23 PM, Eric Butera wrote: > On Fri, Jun 17, 2011 at 3:19 PM, Jim Lucas wrote: >> On 6/16/2011 3:15 PM, Nathan Nobbe wrote: >>> what it really amounts to is php is good at doing 1 thing and 1 thing only, >>> generating web pages. for anything else, including command line scripts >>

Re: [PHP] Doctrine madness!

2011-06-17 Thread Bostjan Skufca
Not the original poster's response, but here PHP daemons also run smoothly. Full fledged OO style programming, with a bit of a thought about freeing unused variables/objects (running since PHP 5.2 times) it runs smoothly and in couple of weeks of uptime only gains few MB of memory footprint. Not he

[PHP] mysqli_query() returns NULL?

2011-06-17 Thread James Colannino
Hey everyone, After reading the documentation for mysqli_query(), I was lead to believe that on any error it would return false. However, through a stupid mistake, I discovered that when I specify an invalid value for the database link identifier (in my case, I accidentally passed an integer

Re: [PHP] Doctrine madness!

2011-06-17 Thread Jim Lucas
On 6/16/2011 3:15 PM, Nathan Nobbe wrote: > what it really amounts to is php is good at doing 1 thing and 1 thing only, > generating web pages. for anything else, including command line scripts > that run for more than 30 seconds, choose an actual programming language or > be prepared to deal w/ h

Re: [PHP] Doctrine madness!

2011-06-17 Thread Eric Butera
On Fri, Jun 17, 2011 at 3:19 PM, Jim Lucas wrote: > On 6/16/2011 3:15 PM, Nathan Nobbe wrote: >> what it really amounts to is php is good at doing 1 thing and 1 thing only, >> generating web pages.  for anything else, including command line scripts >> that run for more than 30 seconds, choose an a

Re: [PHP] Performance gain when not using prepared statements?

2011-06-17 Thread Eric Butera
On Fri, Jun 17, 2011 at 4:55 AM, Vitalii Demianets wrote: > On Friday 17 June 2011 04:50:00 Daevid Vincent wrote: >> > I've seen too many people over the years try and rally against common >> > sense practices like using prepared statements for perhaps a marginal >> > gain of performance on one pa

Re: [PHP] Doctrine madness!

2011-06-17 Thread Floyd Resler
On Jun 17, 2011, at 3:05 AM, wrote: > While I do agree with your discloser of the bloat for all off the shelf > frameworks. > > I created my own framework and my development time drop drastically and not > by a few hours, in some cases days. > > The complaint of time is always an issue, if

Re: [PHP] what kind of features would you like in php orms?

2011-06-17 Thread jean-baptiste verrey
You could simply use like doctrine DBAL or an already existing one made specially for ORM, or you can design one and at the moment make it to use only MySQL PDO is actually good enough to do that, I know that the only thing I had to do in my ORM was to write a special class to translate some querie

Re: [PHP] what kind of features would you like in php orms?

2011-06-17 Thread 李白|字一日
thanks, how about the abstraction of different databases? it seems PDO is still lack of functions of importance. I'm currently trying to design a automated model like django or activeRecord. it should be quiet simple and automated, i have managed to possibly create the whole database only once. bu

Re: [PHP] what kind of features would you like in php orms?

2011-06-17 Thread jean-baptiste verrey
- defining the mapping schema in an alternate method than using meta data (I HATE them, I would prefer an XML file with a DTD so you could use autocompletion with IDE like NetBeans) - clear keywords in the schema - OQL can do UPDATEs - one and only one configuration file with everything in it (and

[PHP] Performance gain when not using prepared statements?

2011-06-17 Thread Vitalii Demianets
On Friday 17 June 2011 04:50:00 Daevid Vincent wrote: > > I've seen too many people over the years try and rally against common > > sense practices like using prepared statements for perhaps a marginal > > gain of performance on one page while their load averages are 0,0,0. > > Agreed. The ONLY tim

Re: [PHP] Best way to create an image with flowing text?

2011-06-17 Thread Richard Quadling
On 16 June 2011 23:59, Brian Dunning wrote: > Hey all - > > I need to create PNG images with transparent backgrounds that contain text. > The text will come from four fields in a database, and needs to be centered, > and text wrapped. The fields are going to be of varying lengths, so each > blo

RE: [PHP] Doctrine madness!

2011-06-17 Thread admin
While I do agree with your discloser of the bloat for all off the shelf frameworks. I created my own framework and my development time drop drastically and not by a few hours, in some cases days. The complaint of time is always an issue, if you do not scope out a project properly. Timelines and