echo problem
| From: | Ryan A | Date: | Thu, 01 May 2003 22:44:24 +0000 |
| Subject: | echo problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146020@lists.php.net to get a copy of this message | ||
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?
Kindly reply,
-Ryan