Re: [PHP] ORM doctrine

2010-12-08 Thread Robert Cummings
On 10-12-09 02:11 AM, Daevid Vincent wrote: Avoid these ORM things like the plague! They seem great in theory, but if you're doing anything serious, they will quickly get in your way. Not to mention all that fancy "ORM" doesn't come without a price. It costs in terms of speed, as well as training

RE: [PHP] ORM doctrine

2010-12-08 Thread Daevid Vincent
Avoid these ORM things like the plague! They seem great in theory, but if you're doing anything serious, they will quickly get in your way. Not to mention all that fancy "ORM" doesn't come without a price. It costs in terms of speed, as well as training. You're much better off to make your custom t

Re: [PHP] ORM doctrine

2010-12-08 Thread Alexandru Patranescu
Doctrine is mature and well I've seen it plenty of times companies using it. Of course it handles multi table joins but I think it's main purpose is not related to users writing joins... It's an ORM, you just read and write objects. Caching is something that must be there and you can read more on

[PHP] ORM doctrine

2010-12-08 Thread Tommy Pham
Hi, Has anyone used doctrine before? I know Nathan mentioned it in the other thread but I was wondering how does it handle multi table joins query, about its performance and whether it uses any type of caching. Thanks, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] zip_entry_read buggy? runs endless on file with crc-error - freezes on corrupt file

2010-12-08 Thread TR Shaw
On Dec 8, 2010, at 6:42 PM, Merlin Morgenstern wrote: > Hi there, > > I am running a php file via cron where zip files will be extracted with the > help of zip_entry_read. This worked great until I had a corrupted zip file to > extract. This braught the server down as the php script never ende

[PHP] zip_entry_read buggy? runs endless on file with crc-error - freezes on corrupt file

2010-12-08 Thread Merlin Morgenstern
Hi there, I am running a php file via cron where zip files will be extracted with the help of zip_entry_read. This worked great until I had a corrupted zip file to extract. This braught the server down as the php script never ended. The function max_execution_time does not help as it zip is a

Re: [PHP] how can one run python script in php

2010-12-08 Thread TR Shaw
On Dec 8, 2010, at 5:50 PM, Moses wrote: > Hi Everyone, > > I am trying to run a python script in php using exec or system command, but > there is > no answer. > > musa I agree we need to see what you have done and on what OS but something like this is what you should be looking at: $data_fro

Re: [PHP] how can one run python script in php

2010-12-08 Thread Richard Quadling
On 8 December 2010 22:50, Moses wrote: > Hi Everyone, > > I am trying to run a python script in php using exec or system command, but > there is > no answer. > > musa > I use windows and http://docs.php.net/manual/en/install.windows.manual.php and http://docs.php.net/manual/en/install.windows.com

RE: [PHP] how can one run python script in php

2010-12-08 Thread admin
Try CURL http://www.php.net/manual/en/book.curl.php Richard L. Buskirk -Original Message- From: Moses [mailto:jam...@gmail.com] Sent: Wednesday, December 08, 2010 5:51 PM To: php-general@lists.php.net Subject: [PHP] how can one run python script in php Hi Everyone, I am trying to run

Re: [PHP] how can one run python script in php

2010-12-08 Thread David Harkness
On Wed, Dec 8, 2010 at 2:50 PM, Moses wrote: > I am trying to run a python script in php using exec or system command, but > there is no answer. > If you post the code you have tried, we can point out any errors you're making and help you find the solution. David

[PHP] how can one run python script in php

2010-12-08 Thread Moses
Hi Everyone, I am trying to run a python script in php using exec or system command, but there is no answer. musa

Re: [PHP] new keyword combined with other things...

2010-12-08 Thread Nathan Nobbe
On Wed, Dec 8, 2010 at 12:26 PM, Tommy Pham wrote: > > -Original Message- > > From: David Harkness [mailto:davi...@highgearmedia.com] > > Sent: Wednesday, December 08, 2010 10:46 AM > > To: Paul M Foster > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] new keyword combined with ot

RE: [PHP] new keyword combined with other things...

2010-12-08 Thread Tommy Pham
> -Original Message- > From: David Harkness [mailto:davi...@highgearmedia.com] > Sent: Wednesday, December 08, 2010 10:46 AM > To: Paul M Foster > Cc: php-general@lists.php.net > Subject: Re: [PHP] new keyword combined with other things... > > On Wed, Dec 8, 2010 at 9:31 AM, Paul M Foster

Re: [PHP] No errors gets displayed, just a blank page

2010-12-08 Thread Ashley Sheridan
On Wed, 2010-12-08 at 13:16 -0500, tedd wrote: > At 2:07 AM +0100 12/8/10, Rico Secada wrote: > >Hi. > > > >What can cause that no parse error gets displayed (blank page/no output > >at all) even though error reporting is set to "-1"? > > > >I have run the script through php lint on the console an

Re: [PHP] new keyword combined with other things...

2010-12-08 Thread David Harkness
On Wed, Dec 8, 2010 at 9:31 AM, Paul M Foster wrote: > I agree. My advice for SQL is always to learn SQL rather than use a > bunch of active record functionality. But I'm sure people think I'm just > a curmudgeonly old turd. ;-} > Yes, absolutely learn SQL so you understand what's happening under

Re: [PHP] No errors gets displayed, just a blank page

2010-12-08 Thread tedd
At 2:07 AM +0100 12/8/10, Rico Secada wrote: Hi. What can cause that no parse error gets displayed (blank page/no output at all) even though error reporting is set to "-1"? I have run the script through php lint on the console and it comes up with no errors. I have run into this problem the la

Re: [PHP] new keyword combined with other things...

2010-12-08 Thread Paul M Foster
On Wed, Dec 08, 2010 at 07:14:39AM -0800, Tommy Pham wrote: > On Tue, Dec 7, 2010 at 1:55 PM, Paul M Foster > wrote: > > > > $this->db->select('title')->from('mytable')->where('id', $id)->limit(10, > > 20); > > > > What kind of internal magic they use to make this work, I don't know. I > > haven'

Re: [PHP] newbie basic realm protection - why don't the input usr/pass stick?

2010-12-08 Thread Govinda
you script looks (and works) fine. so i dont think the problem is in your script I found firebug/live http headers firefox addons to be helpful in this situation see if your client is actually sending "Authorization Basic" header Kranthi. http://goo.gl/e6t3 Kranthi, thanks for lookin

RE: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-08 Thread Tommy Pham
> -Original Message- > From: Tom Robinson [mailto:tom.robin...@motec.com.au] > Sent: Tuesday, December 07, 2010 4:03 PM > To: php-general@lists.php.net > Subject: [PHP] PHP4 to PHP5 migration with E_STRICT > > Hi, > > I'm migrating a web application written for PHP4 to PHP5. I've turned o

Re: [PHP] new keyword combined with other things...

2010-12-08 Thread Tommy Pham
On Tue, Dec 7, 2010 at 1:55 PM, Paul M Foster wrote: > > $this->db->select('title')->from('mytable')->where('id', $id)->limit(10, > 20); > > What kind of internal magic they use to make this work, I don't know. I > haven't examined their internals. > > Paul > > -- > Paul M. Foster > I've never se

Re: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-08 Thread Richard Quadling
On 8 December 2010 01:12, Tom Robinson wrote: > Thanks David. > > If my understanding is correct, then: > > SPControlPanel::getContentTypes($db); > > is a reference to a static instantiation of the class. If so, then it > must be syntactically something like when using 'new' (which returns a > ref