monkeybidz Posted July 10, 2011 Share Posted July 10, 2011 print "<meta name=\"keywords\" content=\"<?php include('./robots_keywords.php');?>\">"; Link to comment https://forums.phpfreaks.com/topic/241552-whats-wrong-with-this-line/ Share on other sites More sharing options...
dragon_sa Posted July 10, 2011 Share Posted July 10, 2011 cant include like that but can like this <?php ob_start(); include('./robots_keywords.php'); $content=ob_get_clean(); print "<meta name=\"keywords\" content=\"$content\">"; ?> Link to comment https://forums.phpfreaks.com/topic/241552-whats-wrong-with-this-line/#findComment-1240744 Share on other sites More sharing options...
QuickOldCar Posted July 10, 2011 Share Posted July 10, 2011 I guess should close the meta tag too. <?php ob_start(); include('./robots_keywords.php'); $content=ob_get_clean(); print "<meta name=\"keywords\" content=\"$content\" />"; ?> Link to comment https://forums.phpfreaks.com/topic/241552-whats-wrong-with-this-line/#findComment-1240752 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.