Re: echo problem

From: Date: Thu, 01 May 2003 22:55:05 +0000
Subject: Re: echo problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146021@lists.php.net to get a copy of this message
On Thu, 2003-05-01 at 18:44, Ryan A wrote: > Hi, > I have a file called messages.php > In messages .php I have $demo_wrong="Demo feature has been turned off"; > > I have a > require 'messages.php'; > in file MainPHP.php and this: > > if($allow_demo=="N") > { > if($demo=="Y") > { > echo '$demo_wrong'; > exit; > } > } > > but when i execute the program everything works fine except i get the output > : > > $demo_wrong > > instead of : > > Demo feature has been turned off > > > > What am I doing wrong? > echo $demo_wrong;

« previous php.general (#146021) next »