Try 

<?php
$variable = "This is a variable!";
echo "Echo Variable contents: $variable";
?>

Note that $variable is inside the pair of  "

On my PC it works both ways, anyway...



----- Original Message ----- 
From: "Lasse Riis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 12:05 PM
Subject: [PHP-WIN] all variables unset in w2k


> Hi
> I'm trying to setup php and apache on my w2k box, everything seems to 
> work smoothly, only I CAN'T SET ANY VARIABLES!!!!
> 
> this script for instance:
> <?php
> $variable = 'This is a variable!';
> echo 'Variable contents: '.$variable;
> ?>
> gives the following output:
> Variable contents:
> 
> What's wrong? I've tried installing SP1 and SP2 but that makes no 
> difference. Both the SAPiI module and the cgi binary does it, not only 
> with apache, the cgi installed on IIS did the same thing. Sombeody help me!
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to