Click to See Complete Forum and Search --> : Why won't my simple script work?


andrew1234
07-08-2003, 01:16 AM
hi i simplified this out a script i had

why won't it display

thanks andrew

<?php
$a = ("php"=="php") ? "true":"false";

$result = "testing string \ $a" ;
?>

<html>

<body>
<?php echo ($result); ?>

</body>
</html>

pyro
07-08-2003, 06:21 AM
That code is fine, so you must have a problem somewhere else...

andrew1234
07-08-2003, 06:34 AM
thanks i feel silly

I was sending the php file to the wrong directory on my testing server


thanks again
Andrew