I'm trying to print a line to do <?php include('text.txt'); ?> but when I try to do the ?> at the end of it, it causes a sparse error like this
Parse error: parse error in /home/knight/scriptparadise-www/test/test.php on line 11
); exit; } if(page1 ==
here is the code to see what I have.
<?php
require("bah.php");
ReadQuery($qstring);
if($qstring == "page1") {
print("<?php include('test.txt');?>);
exit;
}
if($qstring == "showphp") {
print("no php lol");
}
?>
If you know of another way to accomplish what I want please let me know. wondering if fopen would do the same