need a bit help with php.
i have a script that gets info from file and displays it on site, however when file contains php script, then site will run it, and thats bad bcos security
php code to get file:
<?php include("./files/".$_GET["ID"].".file"); ?>
is there any way to disable php from running and displaying only file content, so it would ignore php tags in content. however it should allow html tags
cheers
i have a script that gets info from file and displays it on site, however when file contains php script, then site will run it, and thats bad bcos security
php code to get file:
<?php include("./files/".$_GET["ID"].".file"); ?>
is there any way to disable php from running and displaying only file content, so it would ignore php tags in content. however it should allow html tags
cheers
Last edited: