Re: [PHP] foreach

2012-10-17 Thread tamouse mailing lists
On Wed, Oct 17, 2012 at 6:07 PM, Larry Garfield wrote: > Nothing is wrong with mysqli per se. It's up to date and secure, and > certainly better than ext/mysql. I recommend PDO over mysqli because: > > 1) PHP-engine-level global state (ie, not specifying a connection) is the > source of most (al

Re: [PHP] Send php Mail not working in MAMP (non pro version)

2012-10-17 Thread Dave
> > Make sure, if you happen to have install postfix as well, that it has > replaced your sendmail. > > Then, from the cli, as your apache/php user, try sending an email using > sendmail. > > # sendmail -v y...@email.com > testing > . > Thanks a lot Jim for the help... sorry this is getting a bi

Re: [PHP] foreach

2012-10-17 Thread Larry Garfield
On 10/17/12 10:17 AM, Matijn Woudt wrote: On Wed, Oct 17, 2012 at 1:25 AM, Larry Garfield wrote: For the love of god, please stop using ext/mysql (aka the mysql_* functions). It's insecure and slow and lacks features. Instead, use PDO, and bind your parameters. As a nice bonus, the result f

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Geoff Shang
On Wed, 17 Oct 2012, Richard S. Crawford wrote: I've confirmed that the server is set to PDT. The value of date.timezone in php.ini is "America/Los_Angeles", which should be (currently) -8 hours from UTC, but it looks like the PDT offset is only set to -4. Does that even make sense? Actually,

Re: [PHP] Send php Mail not working in MAMP (non pro version)

2012-10-17 Thread Jim Lucas
On 10/17/2012 09:52 AM, Dave wrote: Hi all, MAC LION 10.7.4& latest MAMP (non pro version) I've tried various things - but php send mail not working in MAMP (non pro version) ... mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_paramete

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Daniel Brown
On Wed, Oct 17, 2012 at 2:28 PM, Richard S. Crawford wrote: > > You can see the current output of the above code here: > > http://projectbench.extensiondlc.net > > I've confirmed that the server is set to PDT. The value of date.timezone in > php.ini is "America/Los_Angeles", which should be (curre

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Richard S. Crawford
On Tue, Oct 16, 2012 at 3:16 PM, Daniel Brown wrote: > >> With regard to debugging your issue, it's extremely unlikely that > >> it's PHP's fault, since no one else has the same issue. However, it > >> does indeed sound as though there's a configuration mismatch or a bad > >> setting of the

[PHP] Send php Mail not working in MAMP (non pro version)

2012-10-17 Thread Dave
Hi all, MAC LION 10.7.4 & latest MAMP (non pro version) I've tried various things - but php send mail not working in MAMP (non pro version) ... mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) the same script works on a ho

Re: [PHP] Serving an image

2012-10-17 Thread Wouter van Vliet / Interpotential
> > What is the diference between using imagecreatefrompng() and readfile()? > Any performance improvement? > > If you don't do any image minipulation, I would recommend readfile indeed. The differences being that imagecreatefrompng load the image into memory, ready to change it (overlay, rotate, c

Re: [PHP] foreach

2012-10-17 Thread Matijn Woudt
On Wed, Oct 17, 2012 at 1:25 AM, Larry Garfield wrote: > > For the love of god, please stop using ext/mysql (aka the mysql_* > functions). It's insecure and slow and lacks features. > > Instead, use PDO, and bind your parameters. As a nice bonus, the result > from a PDO-based query is not a raw

[PHP] Eclipse plugins ...

2012-10-17 Thread Lester Caine
I've just run up Eclipse-Juno on a machine a few days ago, and I thought I would try out PDT jut to see what the differences are to phpeclipse. The current problems with phpeclipse are that is falling behind on support for the new features, so gives phantom errors for things like 'static::' whic

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Lester Caine
Daniel Brown wrote: This is the output: > >America/Los_Angeles >Tue, 16 Oct 2012 17:22:09 -0400 >Tue, 16 Oct 2012 21:22:09 + >1350422529 (-14400) >Tue Oct 16 17:22:09 EDT 2012 Is this a shared server, Rich? As shown, the admin configured the timezone of the machine to be EDT and set the