Web Hosting Talk







View Full Version : install.php display config file?


xaero
01-14-2008, 03:05 PM
been trying to google this but i must not be wording it write. Heres what i want todo

i want to echo

<?
$host = variable;
$username = variable;
$password = variable;
$database = variable;
?>

to the screen if the script cannot write the file by itself

how can i echo this out to a file and how can i echo it to the browser without it being parsed by php?

xaero
01-14-2008, 03:11 PM
been trying to google this but i must not be wording it write. Heres what i want todo

i want to echo

<?
$host = variable;
$username = variable;
$password = variable;
$database = variable;
?>

to the screen if the script cannot write the file by itself

how can i echo this out to a file and how can i echo it to the browser without it being parsed by php?

Answer htmlspecialchars();

finally found the answer