Forum Moderators: phranque
<?php
$color = "001FFF";
$text = "this page was dynamically generated.";
?>
<html>
<font color="<?php print $color;?>">
<?php print $text;?></font>
</html>
Is there something wrong with my code?
Thanks
Martin
<html>
<font color="<?php print $color;?>">
<?php print $text;?></font>
</html>
A basic html file works eg. index.php with <html>hello</html> works fine.
Just to give you some background, jdmorgan kindly helped me with a recent problem and I don't know if the two are related? link below...
[webmasterworld.com...]
Kind regards
Martin
Along with understanding your server configuration (Apache) as jdMorgan recommends, you should also understand your PHP installation [php.net]. Yes, it does take some time to read, review and understand all these things but they are critical in web site operation. Best regards!