Hi,
I am trying to create a index.php page just pasting the html code to use in a textarea and using . But i am getting the probblem that when all html code data is saved in index.php before each " character appear a \ character; for example:
<font size="1">blabla</font> is transformed to:
<font size=\"1\">blabla</font>
The php code I se to create the index.php page with the html code provider is:
if ($code_to_index) {
if (!file_exists('pruebas'))
{
echo "Warning: Folder 'pruebas' does not exist. Please create it and chmod it to 777<br>";
}
else
{
if (!is_writeable('pruebas'))
{
echo "Warning: Folder 'pruebas' does not have writing permissions. Please chmod it to 777<br>";
}
}
$fp = fopen("index.php","w");
fwrite($fp,$code_to_index);
fclose($fp);
echo "INDEX PAGE CREATED!!";
}
And this is the form where I paste the html code to be added:
form name="form1" method="post" action="build.php">
<textarea name="code_to_index" wrap="VIRTUAL" cols="95" rows="20"></textarea>
<br>
<br>
<input type="submit" name="create_index" value="Create page NOW">
/form>
Anyone could tell me how to fix this small problem? thanks for all!