ilikephp Posted March 2, 2009 Share Posted March 2, 2009 Hello, I am using: include.php <?php include ('../../include.php'); ?> and in my websites: I am adding: <title><?=$siteTitle;?></title> I installed the apache and php on my vista, so in the title bar I can not have the text, I receive: <?=$siteTitle;?> when I upload my files on the website, everything is working, \\Can somebody help plz!! Link to comment https://forums.phpfreaks.com/topic/147626-solved-not-recognized/ Share on other sites More sharing options...
Mchl Posted March 2, 2009 Share Posted March 2, 2009 You have short tags <? ?> disabled on your localhost (and good, becasue they're deprecated and their use is discouraged. Use <?php echo $siteTitle;?> instead Link to comment https://forums.phpfreaks.com/topic/147626-solved-not-recognized/#findComment-774972 Share on other sites More sharing options...
ilikephp Posted March 2, 2009 Author Share Posted March 2, 2009 THANKS A LOT!! it works but why It was working on windows xp and on vista no until I put: <?php echo $siteTitle;?> Best, Link to comment https://forums.phpfreaks.com/topic/147626-solved-not-recognized/#findComment-774975 Share on other sites More sharing options...
revraz Posted March 2, 2009 Share Posted March 2, 2009 Because one php.ini had short tags enabled and the other didn't. Link to comment https://forums.phpfreaks.com/topic/147626-solved-not-recognized/#findComment-774976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.