开发者

output in browser not right

my browser is showing this as a result from the following code (code comes straight out of my course)

rule $lineNr: ". htmlspecialchars($line)." "); } ?> (this is not code in my editor this is the actual output of the browser)

<?
   // read file in table

   $table = file("test.txt");
   while(list($lineNr, $line) = each($table))
   {
      print("<b>rule $lineNr:开发者_开发知识库 </b>". htmlspecialchars($line)."<br>");
   }
?>

normally this is because I put my address in my browser the wrong way. But this time the path to the file is rooted in the actual xampp rootfolder just like other php files that do work. So I don't really know where to look for the solution to this.


Make sure you use the full php start tag ("<?php"). You are using the short tag ("<?").

<?php

    // code

?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜