php-general Digest 17 Oct 2012 15:18:06 -0000 Issue 8011

2012-10-17 Thread php-general-digest-help
php-general Digest 17 Oct 2012 15:18:06 - Issue 8011 Topics (messages 319497 through 319499): Re: Wrong time being displayed by PHP! 319497 by: Lester Caine Eclipse plugins ... 319498 by: Lester Caine Re: foreach 319499 by: Matijn Woudt Administrivia: To

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

[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::'

Re: [PHP] foreach

2012-10-17 Thread Matijn Woudt
On Wed, Oct 17, 2012 at 1:25 AM, Larry Garfield la...@garfieldtech.com 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

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

[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

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 danbr...@php.net 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

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 rscrawf...@mossroot.com 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

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

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] 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 la...@garfieldtech.com 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

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 bit above

Re: [PHP] foreach

2012-10-17 Thread tamouse mailing lists
On Wed, Oct 17, 2012 at 6:07 PM, Larry Garfield la...@garfieldtech.com 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