Re: [PHP] Warning: Undefined variable

2002-04-04 Thread Erik Price
Good to hear from you again David, On Wednesday, April 3, 2002, at 06:28 AM, DL Neil wrote: If they are one and the same machine/server, then use 'debug' code to reset options at the beginning of dev code (and remove it when the routine is 'promoted' to prod). Excellent idea. E_ALL for

Re: [PHP] Warning: Undefined variable

2002-04-03 Thread DL Neil
Erik, My two cents' (with allowance for inflation...) If you're distributing code in cyberspace it's a good idea to make it error free too, E_NOTICE or otherwise. To get the maximum help when coding, and to ensure the minimum of confusion for your users, I recommend: 1 set the dev server's

Re: [PHP] Warning: Undefined variable

2002-04-03 Thread Rasmus Lerdorf
I got back quite a few responses on this list on the subject of having variables that are not defined before they are used. That's interesting -- it's nice to know that I can take shortcuts and conjure them up on the fly, but I didn't realize that it was good practice to declare the

Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Erik Price
On Monday, April 1, 2002, at 11:15 PM, Philip Olson wrote: Good little programmers define variables before using them, or at least before evaluating them. Really? I'm not arguing with you, I'm curious: I thought that it was a valued feature of newer scripting languages that they do not

RE: [PHP] Warning: Undefined variable

2002-04-02 Thread Rick Emery
++. That said, I love the power that PHP provides as far as functionality is concerned. just my 2 pfennigs... -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:26 AM To: Philip Olson Cc: kip; [EMAIL PROTECTED] Subject: Re: [PHP] Warning: Undefined

Re: Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Adam Voigt
, April 02, 2002 8:26 AM To: Philip Olson Cc: kip; [EMAIL PROTECTED] Subject: Re: [PHP] Warning: Undefined variable On Monday, April 1, 2002, at 11:15 PM, Philip Olson wrote: Good little programmers define variables before using them, or at least before evaluating them. Really? I'm

Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Philip Olson
Good little programmers define variables before using them, or at least before evaluating them. Really? I'm not arguing with you, I'm curious: I thought that it was a valued feature of newer scripting languages that they do not require declaration of variables. At least that's what

Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 03:27 PM, Philip Olson wrote: If you're distributing code in cyberspace it's a good idea to make it error free too, E_NOTICE or otherwise. I got back quite a few responses on this list on the subject of having variables that are not defined before they are

Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Philip Olson
We are confusing one another :) I'm not talking about declaring variables per se, but rather making sure the variable exists before evaluating it. So: $var = 'foobar'; if ($var == 'foobar') That's fine, no need to do declare $var before this in PHP. My words here simply mean to make sure

[PHP] Warning: Undefined variable

2002-04-01 Thread kip
Hi, As i know we don't need to define a variable before in PHP. But i have a very strange case. In my server, i hosted a PHP website. When i update the server from PHP3 to PHP4, problems came out. Most of the php pages didn't work and display many warnings like that : Warning: Undefined

RE: [PHP] Warning: Undefined variable

2002-04-01 Thread Martin Towell
maybe the reporting of warning is turn off for the php3 installation, but turned on for the php4 installation. -Original Message- From: kip [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 12:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Warning: Undefined variable Hi, As i know

Re: [PHP] Warning: Undefined variable

2002-04-01 Thread Philip Olson
Good little programmers define variables before using them, or at least before evaluating them. print $undefined; // E_NOTICE error The most common use of this is: if ($submit) { To check if a form submit button named submit has been submitted. If not, this does indeed evaluate to

[PHP] Warning: Undefined variable when used locally, but fine on remote server

2001-09-24 Thread Justin Colson
I have recently installed Apache 1.3.2 and PHP 4.0.6 using the instructions at http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming on a Win98 machine which I will later use as an intranet server (NT workstation refuses to detect NT server, and the machine is too slow for Win2k).

Re: [PHP] Warning: Undefined variable when used locally, but fineon remote server

2001-09-24 Thread Philip Olson
This has to do with error_reporting level setting set in php.ini echo $iamnotset; when E_NOTICE level is on, that will produce a Warning. Otherwise, it will not. I posted something similiar recently, see it here: http://marc.theaimsgroup.com/?l=php-generalm=100083224311516 On uklinux,