php-general Digest 17 Jun 2011 19:20:10 -0000 Issue 7363

2011-06-17 Thread php-general-digest-help
php-general Digest 17 Jun 2011 19:20:10 - Issue 7363 Topics (messages 313582 through 313591): Re: Doctrine madness! 313582 by: 李白|字一日 313584 by: admin.buskirkgraphics.com 313590 by: Floyd Resler what kind of features would you like in php orms?

Re: [PHP] Doctrine madness!

2011-06-17 Thread 李白|字一日
2011/6/17 Nathan Nobbe quickshif...@gmail.com On Thu, Jun 16, 2011 at 3:58 PM, Eric Butera eric.but...@gmail.com wrote: On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent:

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

2011-06-17 Thread 李白|字一日
and how to design such an orm in current state of php language?

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

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 br...@briandunning.com 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

[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 time

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

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.

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

Re: [PHP] Doctrine madness!

2011-06-17 Thread Floyd Resler
On Jun 17, 2011, at 3:05 AM, ad...@buskirkgraphics.com ad...@buskirkgraphics.com 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.

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 vi...@nppfactor.kiev.ua 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

Re: [PHP] Doctrine madness!

2011-06-17 Thread Eric Butera
On Fri, Jun 17, 2011 at 3:19 PM, Jim Lucas li...@cmsws.com 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,

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/

[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

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

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 li...@cmsws.com 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