monkeybidz Posted July 10, 2011 Share Posted July 10, 2011 print "<meta name=\"keywords\" content=\"<?php include('./robots_keywords.php');?>\">"; Quote 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\">"; ?> Quote 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\" />"; ?> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.