php-general Digest 8 Dec 2010 10:14:56 -0000 Issue 7075

2010-12-08 Thread php-general-digest-help
php-general Digest 8 Dec 2010 10:14:56 - Issue 7075 Topics (messages 309896 through 309906): Re: new keyword combined with other things... 309896 by: Alexandru Patranescu 309897 by: Paul M Foster 309898 by: David Harkness newbie basic realm protection - why don't

Re: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-08 Thread Richard Quadling
On 8 December 2010 01:12, Tom Robinson tom.robin...@motec.com.au 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'

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 pa...@quillandmouse.com 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

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 on

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

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 pa...@quillandmouse.com 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

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

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 pa...@quillandmouse.comwrote: 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

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 and it comes up

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] new keyword combined with other things...

2010-12-08 Thread Nathan Nobbe
On Wed, Dec 8, 2010 at 12:26 PM, Tommy Pham tommy...@gmail.com 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

[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] how can one run python script in php

2010-12-08 Thread Richard Quadling
On 8 December 2010 22:50, Moses jam...@gmail.com 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

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 ended.

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

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

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

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.