Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3621

missing variable

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.cablespeedmi.com!news.cablespeedmi.com.POSTED!not-for-mail
NNTP-Posting-Date Sat, 29 Oct 2011 14:42:23 -0500
Date Sat, 29 Oct 2011 15:42:17 -0400
From bill <nobody@spamcop.net>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version 1.0
Newsgroups comp.lang.php
Subject missing variable
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <-4adnYXjVd2CyjHTnZ2dnUVZ_oudnZ2d@cablespeedmi.com> (permalink)
Lines 31
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 24.56.193.205
X-Trace sv3-fzlX3+2XwHcKMoAPC2wtQ4ygLqTcC1ON6ac/8JRzVZzwK8DZ/HTaVXasp/jcIWMSduXfTIPTjLulp5q!RjcN9KgnCQmMWYTI6Fv3NF93K7re8CfSoMr9Be08gxS7LnR9z+kGdhfZ2/laTtuaOh2f02vcaMP0!hMfUVg+EVA9xEyoS6MRbjaGtDg==
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1718
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:3621

Show key headers only | View raw


here is a tiny piece of my script:

$history = "empty appointment filled ";
echo  " history: $history\n";

when it executes I get a PHP Notice
PHP Notice:  Undefined variable: history in 
/var/www/MP2010-v2/classes/cSchedule.php on line 108

however if I use:
$history = "xxx";
echo  " history: $history\n";

it executes fine.

To say I am puzzled is a vast understatement.
Yes, I did cut an paste from the script,
No, I did not include the other  200 lines.
If I paste it into a test script, it runs fine so it is obviously 
in the other 200 lines.

If I rename the variable "hist" I get the same error

THis is running from the command line.

any thoughts ?

bill


Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

missing variable bill <nobody@spamcop.net> - 2011-10-29 15:42 -0400
  Re: missing variable Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2011-10-29 23:35 +0200
    Re: missing variable bill <nobody@spamcop.net> - 2011-10-30 08:59 -0400
      Re: missing variable Denis McMahon <denismfmcmahon@gmail.com> - 2011-10-30 19:57 +0000
        Re: missing variable Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-30 19:29 -0400
          Re: missing variable Denis McMahon <denismfmcmahon@gmail.com> - 2011-10-31 00:37 +0000
        Re: missing variable bill <nobody@spamcop.net> - 2011-10-31 06:30 -0400

csiph-web