phpwsod

php echo include


echo ("<div style=\"text-align:center\">" . include ('file.php') . "</div>\n");

I'm not sure why, but whenever I put that line in my script I get blank screen :(


Solution

  • echo "<div style=\"text-align:center\">";
    include ('file.php');
    echo "</div>\n";
    

    Include does not return the result of the parsing of the file so it makes no sense whatsoever to concatenate here.