php-general Digest 14 Feb 2013 15:08:05 -0000 Issue 8123

2013-02-14 Thread php-general-digest-help
php-general Digest 14 Feb 2013 15:08:05 - Issue 8123 Topics (messages 320201 through 320203): Re: APC opcode cache behavior 320201 by: Aaron Holmes 320202 by: marco.behnke.biz 320203 by: Camilo Sperberg Administrivia: To subscribe to the digest, e-mail:

Re: [PHP] APC opcode cache behavior

2013-02-14 Thread ma...@behnke.biz
Aaron Holmes aa...@aaronholmes.net hat am 14. Februar 2013 um 03:53 geschrieben: Hello, I'm trying to find some information on APC opcode cache behavior. We noticed an issue where, when switching symlinks to different versions of sites, old code was running from the previous version after

Re: [PHP] APC opcode cache behavior

2013-02-14 Thread Camilo Sperberg
On 14 feb. 2013, at 15:19, ma...@behnke.biz ma...@behnke.biz wrote: Aaron Holmes aa...@aaronholmes.net hat am 14. Februar 2013 um 03:53 geschrieben: Hello, I'm trying to find some information on APC opcode cache behavior. We noticed an issue where, when switching symlinks to different

[PHP] Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-14 Thread dealTek
Hi everybody, Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD) Simple story: creating this class database by myself is way over my head. So it be best for me to find something on the Internet that has already been created and working to pro specs (using

Re: [PHP] Undefined Variables

2013-02-14 Thread Ashley Sheridan
Roman Gelfand rgelfa...@gmail.com wrote: Is there a performance hit when a variable is undefined? or, perhaps, aside from the obvious uncontrolled conditions, are there other impacts? Thanks in advance Aside from all the warnings and potential logic bombs? You will have a negligible

Re: [PHP] Undefined Variables

2013-02-14 Thread Matijn Woudt
On Thu, Feb 14, 2013 at 7:04 PM, Roman Gelfand rgelfa...@gmail.com wrote: Is there a performance hit when a variable is undefined? or, perhaps, aside from the obvious uncontrolled conditions, are there other impacts? Thanks in advance There might be a little performance hit because the

Re: [PHP] openssl_encrypt, ecb and IV

2013-02-14 Thread Stephan
Am 24.01.2013 18:08, schrieb Kevin Kinsey: On Thu, Jan 24, 2013 at 05:55:35PM +0100, steff...@gmx.de wrote: Hi list, I am having trouble with error messages saying Using an empty Initialization Vector (iv) is potentially insecure and not recommended These messages turn up using horde which

Re: [PHP] Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-14 Thread Haluk Karamete
I recommend a third option, that is PDO. Start here please. http://net.tutsplus.com/?s=pdo On Thu, Feb 14, 2013 at 9:49 AM, dealTek deal...@gmail.com wrote: Hi everybody, Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD) Simple story: creating this

Re: [PHP] Undefined Variables

2013-02-14 Thread Jan Ehrhardt
Matijn Woudt in php.general (Thu, 14 Feb 2013 19:12:55 +0100): On Thu, Feb 14, 2013 at 7:04 PM, Roman Gelfand rgelfa...@gmail.com wrote: Is there a performance hit when a variable is undefined? or, perhaps, aside from the obvious uncontrolled conditions, are there other impacts? There might

[PHP] Re: Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-14 Thread dealTek
On Feb 14, 2013, at 9:49 AM, dealTek deal...@gmail.com wrote: Hi everybody, Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD) Simple story: creating this class database by myself is way over my head. So it be best for me to find something on the

Re: [PHP] Re: Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-14 Thread Haluk Karamete
Also worth checking http://justinvincent.com/ezsql Which is the class behind the WordPress' wpdb class. This is a great read too - http://www.devarticles.com/c/a/MySQL/PHP-and-Databases-for-the-Lazy-Sod/ On Thu, Feb 14, 2013 at 10:30 AM, dealTek deal...@gmail.com wrote: On Feb 14, 2013, at

Re: [PHP] Undefined Variables

2013-02-14 Thread Stuart Dallas
Sorry for the top post! I don't know numbers, but my gut instinct is that the cycles wasted raising the notice (it gets raised even if it goes nowhere so turning display and log doesn't remove the hit completely) are better spent executing defensive code. There is no reason, ever, that

[PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Chris Bergstresser
Hi all -- I've got a cloud server on Rackspace. If I bring up a fresh Ubuntu 12.10 machine image, and type apt-get install php5 it seems to install fine. But if I then type php -version I get PHP Parse error: syntax error, unexpected end of file in Command line code on line 1. What went

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Daniel Brown
On Thu, Feb 14, 2013 at 2:20 PM, Chris Bergstresser ch...@subtlety.com wrote: Hi all -- I've got a cloud server on Rackspace. If I bring up a fresh Ubuntu 12.10 machine image, and type apt-get install php5 it seems to install fine. But if I then type php -version I get PHP Parse error:

Re: [PHP] APC opcode cache behavior

2013-02-14 Thread Marco Behnke
Am 14.02.13 16:05, schrieb Camilo Sperberg: You can also write a little script that clears the APC cache, something in the line of: #!/usr/bin/php ?php apc_clear_cache(); And execute this script each time you deploy. (can also be a command such as php -r apc_clear_cache();). This way

Re: [PHP] Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-14 Thread Bastien Koert
On Thu, Feb 14, 2013 at 1:24 PM, Haluk Karamete halukkaram...@gmail.com wrote: I recommend a third option, that is PDO. Start here please. http://net.tutsplus.com/?s=pdo On Thu, Feb 14, 2013 at 9:49 AM, dealTek deal...@gmail.com wrote: Hi everybody, Newbie is trying to set up OOP With PHP

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Daniel Brown
Remember to hit reply-all, Andy, so it goes to the list as well as the previous author. On Thu, Feb 14, 2013 at 2:49 PM, Andy McKenzie amckenz...@gmail.com wrote: On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown danbr...@php.net wrote: On Thu, Feb 14, 2013 at 2:20 PM, Chris Bergstresser

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread John Iliffe
On Thursday 14 February 2013 14:20:06 Chris Bergstresser wrote: Hi all -- I've got a cloud server on Rackspace. If I bring up a fresh Ubuntu 12.10 machine image, and type apt-get install php5 it seems to install fine. But if I then type php -version I get PHP Parse error: syntax

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Chris Bergstresser
On Thu, Feb 14, 2013 at 3:05 PM, John Iliffe john.ili...@iliffe.ca wrote: type php --version There are two - preceding the word version. Apparently, the version of PHP installed on 12.04 accepts -version. The version of PHP installed on 12.10 does not, and bombs without giving a proper

Re: [PHP] Undefined Variables

2013-02-14 Thread Al
On 2/14/2013 1:54 PM, Stuart Dallas wrote: Sorry for the top post! I don't know numbers, but my gut instinct is that the cycles wasted raising the notice (it gets raised even if it goes nowhere so turning display and log doesn't remove the hit completely) are better spent executing

Re: [PHP] Undefined Variables

2013-02-14 Thread Stuart Dallas
On 14 Feb 2013, at 20:57, Al n...@ridersite.org wrote: On 2/14/2013 1:54 PM, Stuart Dallas wrote: Sorry for the top post! I don't know numbers, but my gut instinct is that the cycles wasted raising the notice (it gets raised even if it goes nowhere so turning display and log doesn't

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Andy McKenzie
On Thu, Feb 14, 2013 at 2:52 PM, Daniel Brown danbr...@php.net wrote: Remember to hit reply-all, Andy, so it goes to the list as well as the previous author. On Thu, Feb 14, 2013 at 2:49 PM, Andy McKenzie amckenz...@gmail.com wrote: On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Daniel Brown
On Thu, Feb 14, 2013 at 4:56 PM, Andy McKenzie amckenz...@gmail.com wrote: Can I just mention, as so many others have, how much I hate the fact that this list is configured to not reply to the list by default? I know. Actually, the only reason it's like this is because a lot of people

Re: [PHP] APC opcode cache behavior

2013-02-14 Thread Camilo Sperberg
On 14 feb. 2013, at 20:32, Marco Behnke ma...@behnke.biz wrote: Am 14.02.13 16:05, schrieb Camilo Sperberg: You can also write a little script that clears the APC cache, something in the line of: #!/usr/bin/php ?php apc_clear_cache(); And execute this script each time you deploy.