Re: [PHP] use strict or similar in PHP?

2009-02-27 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com --

Re: [PHP] use strict or similar in PHP?

2009-02-27 Thread Hans Schultz
On Thu, 26 Feb 2009 22:38:13 +0100, Shawn McKenzie nos...@mckenzies.net wrote: There is no compile time. PHP is interpreted so it is compiled and then executed. If you always want error reporting, then set it in php.ini. It is compiled in no time, so there is no compile time? LOL --

Re: [PHP] use strict or similar in PHP?

2009-02-27 Thread Michael A. Peters
9el wrote: --- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com

Re: [PHP] use strict or similar in PHP?

2009-02-27 Thread Hans Schultz
Sorry, I didn't want to offend anyone :-) It was just very weird argument - to quote: There is no compile time. PHP is interpreted so it is compiled and then executed. Sounds like contradiction in this very sentence :-). My apologies On Fri, 27 Feb 2009 10:22:44 +0100, 9el

Re: [PHP] use strict or similar in PHP?

2009-02-27 Thread Ashley Sheridan
On Fri, 2009-02-27 at 14:04 +0100, Hans Schultz wrote: Sorry, I didn't want to offend anyone :-) It was just very weird argument - to quote: There is no compile time. PHP is interpreted so it is compiled and then executed. Sounds like contradiction in this very sentence :-). My

Re: [PHP] use strict or similar in PHP?

2009-02-27 Thread Hans Schultz
Hahahah,I was thinking the same thing :D --- On Fri, 2/27/09, Ashley Sheridan a...@ashleysheridan.co.uk wrote: From: Ashley Sheridan a...@ashleysheridan.co.uk Subject: Re: [PHP] use strict or similar in PHP? To: Hans Schultz h.schult...@yahoo.com Cc: php-general@lists.php.net, 9el le

Re: [PHP] use strict or similar in PHP?

2009-02-27 Thread Robert Cummings
On Fri, 2009-02-27 at 13:11 +, Ashley Sheridan wrote: But if it never compiles, it can never run, but it can't run without compiling? Arggh, my head. So does that mean if I go back in time and shoot my grandfather, then nobody is in the woods to hear PHP try to compile? There's a blurring

RE: [PHP] use strict or similar in PHP?

2009-02-27 Thread Bob McConnell
From: Hans Schultz Hahahah,I was thinking the same thing :D --- On Fri, 2/27/09, Ashley Sheridan a...@ashleysheridan.co.uk wrote: From: Ashley Sheridan a...@ashleysheridan.co.uk Subject: Re: [PHP] use strict or similar in PHP? To: Hans Schultz h.schult...@yahoo.com Cc: php-general

RE: [PHP] use strict or similar in PHP?

2009-02-27 Thread Boyd, Todd M.
-Original Message- From: Bob McConnell [mailto:r...@cbord.com] Sent: Friday, February 27, 2009 7:44 AM To: h.schult...@yahoo.com; a...@ashleysheridan.co.uk Cc: php-general@lists.php.net; 9el Subject: RE: [PHP] use strict or similar in PHP? From: Hans Schultz Hahahah,I

RE: [PHP] use strict or similar in PHP?

2009-02-27 Thread Robert Cummings
On Fri, 2009-02-27 at 08:43 -0500, Bob McConnell wrote: From: Hans Schultz Hahahah,I was thinking the same thing :D --- On Fri, 2/27/09, Ashley Sheridan a...@ashleysheridan.co.uk wrote: From: Ashley Sheridan a...@ashleysheridan.co.uk Subject: Re: [PHP] use strict or similar in PHP

RE: [PHP] use strict or similar in PHP?

2009-02-27 Thread Hans Schultz
: From: Ashley Sheridan a...@ashleysheridan.co.uk Subject: Re: [PHP] use strict or similar in PHP? To: Hans Schultz h.schult...@yahoo.com Cc: php-general@lists.php.net, 9el le...@phpxperts.net Date: Friday, February 27, 2009, 1:11 PM On Fri, 2009-02-27 at 14:04 +0100, Hans Schultz wrote

Re: [PHP] use strict or similar in PHP?

2009-02-27 Thread Michael A. Peters
Bob McConnell wrote: From what I have seen of PHP, it is strictly interpreted. i.e. a line is read, and executed. Then the next line is read, and executed. etc. So there is no way to get it to block execution from the beginning even when there are fatal errors. It will already have printed out

[PHP] use strict or similar in PHP?

2009-02-26 Thread Hans Schultz
Hello, I am beginner with PHP and prior to PHP I have worked with java for some time and with perl for very short period. I can't help to notice some things that are little annoyance for me with PHP, but I am sure someone more experienced can help me :-) Is there in PHP something like use

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Lewis Wright
Yes you can use: error_reporting(E_ALL); Which will enable notices. You can even do: error_reporting(E_ALL | E_STRICT); To enable strict messages. Lewis. 2009/2/26 Hans Schultz h.schult...@yahoo.com: Hello, I am beginner with PHP and prior to PHP I have worked with java for some time and

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com --

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Ovidiu Rosoiu
Hans Schultz wrote: Hello, I am beginner with PHP and prior to PHP I have worked with java for some time and with perl for very short period. I can't help to notice some things that are little annoyance for me with PHP, but I am sure someone more experienced can help me :-) Is there in PHP

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Hans Schultz
I was thinking more of something to fail at compile time if possible :-)regarding second, that solution with sprintf is vulnerable to SQL injection, that is why I wanted something with parameters, instead of escaping everything myself Thanks for your help anyway --- On Thu, 2/26/09, 9el

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com --

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Hans Schultz
Oh, I didn't mentioned that I tried that, I was thinking  something like failing at compile time (like perl with use strict in programs)Thanks for reply, Hans --- On Thu, 2/26/09, Lewis Wright lewiswri...@gmail.com wrote: From: Lewis Wright lewiswri...@gmail.com Subject: Re: [PHP] use strict

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Spam Recipient
I have no ideea why my response from half an hour ago was not sent, but here it is again: 1. Error reporting set to show notices, warnings and errors. See http://www.php.net/manual/en/function.error-reporting.php 2. For caching you can use memcache. See http://www.php.net/memcache 3. These are

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Ovidiu Rosoiu
On Thu, Feb 26, 2009 at 10:45 PM, Hans Schultz h.schult...@yahoo.comwrote: Hello, I am beginner with PHP and prior to PHP I have worked with java for some time and with perl for very short period. I can't help to notice some things that are little annoyance for me with PHP, but I am sure

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Shawn McKenzie
Subject: Re: [PHP] use strict or similar in PHP? To: Hans Schultz h.schult...@yahoo.com Cc: php-general@lists.php.net Date: Thursday, February 26, 2009, 9:07 PM Yes you can use: error_reporting(E_ALL); Which will enable notices. You can even do: error_reporting(E_ALL | E_STRICT

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Hans Schultz
installation that way? --- On Thu, 2/26/09, 9el le...@phpxperts.net wrote: From: 9el le...@phpxperts.net Subject: Re: [PHP] use strict or similar in PHP? To: h.schult...@yahoo.com Date: Thursday, February 26, 2009, 9:34 PM --- Use

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Shawn McKenzie
Hans Schultz wrote: Thanks a lot for your info, I will check that IDE too. But those warning levels give me warning only when they encounter offending code? Are you telling me that it can be setup to fail entire script prior to any execution if there are errors in it? Can you please point me

Re: [PHP] use strict or similar in PHP?

2009-02-26 Thread Per Jessen
Hans Schultz wrote: Is there some way for PHP to cache some data on the page? I like very much PHP's speed but it would be even better to be able to cache some frequently used data from database? Databases such as MySQL are very good at caching. -- Per Jessen, Zürich (3.6°C) -- PHP