Re: [PHP] Stupid question

2013-02-27 Thread Curtis Maurand
On 2/27/2013 6:32 PM, tamouse mailing lists wrote: On Wed, Feb 27, 2013 at 2:42 AM, Sebastian Krebs wrote: 2013/2/27 tamouse mailing lists Well, *I* have a stupid question: is $lhv =& expr the same as $lhv = &expr ?? Yes :) Because an operator "=&" doesn't exists, thus the lexer will split t

Re: [PHP] Stupid question

2013-02-27 Thread tamouse mailing lists
On Wed, Feb 27, 2013 at 2:42 AM, Sebastian Krebs wrote: > 2013/2/27 tamouse mailing lists >> Well, *I* have a stupid question: is $lhv =& expr the same as $lhv = &expr >> ?? > > Yes :) Because an operator "=&" doesn't exists, thus the lexer will split > them into the tokens "= &", or "= WHITESPAC

[PHP] Running several applications involving PHP on virtual private server - optimization possible?

2013-02-27 Thread Gary Lebowitz
I currently have 1 domain on a VPS with 1 instance of Moodle 2.3.2. To minimize the danger of overtaxing the resources (I share a processor :-( but have 2GBytes of guaranteed RAM) I was wondering if there were anything I could do if I wanted to put, say, Wordpress or another domain on the same serv

RE: [PHP] Re: Stupid question

2013-02-27 Thread Ford, Mike
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: 27 February 2013 12:28 > > > 2 - you have a couple indices wrapped in curly braces, not parens. > Is > that some new kind of syntax I'm not aware of? No, that's some old kind of syntax you have no reason

Re: [PHP] Re: Stupid question

2013-02-27 Thread Serge Fonville
Perhaps he could share all relevant code, since at this time we are mostly guessing. Declaration/assignment of a lot of variables isn't included in the snippets. HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PA

[PHP] Re: Stupid question

2013-02-27 Thread Jim Giner
On 2/26/2013 4:27 PM, Curtis Maurand wrote: I have the following: $dsn = "mysqli://$username:$password@$hostname2/$database"; $options = array( 'debug' => 3, 'result_buffering' => false, ); $dbh =& MDB2::factory($dsn, $options); if (PEAR::isError($mdb2)) {

Re: [PHP] Stupid question

2013-02-27 Thread Sebastian Krebs
2013/2/27 tamouse mailing lists > On Tue, Feb 26, 2013 at 4:41 PM, Jim Lucas wrote: > > On 02/26/2013 01:27 PM, Curtis Maurand wrote: > >> > >> I have the following: > >> > >> $dsn = "mysqli://$username:$password@$hostname2/$database"; > >> $options = array( > >> 'debug' => 3, > >> 'result_buffe