Camac
Joined: 30 Jan 2006
Posts: 22
Location: Australia
|
| Posted: Thu Jul 13, 2006 6:55 am Post subject: problem with removing ; |
|
|
Hey all I have created a filemanager an it works fine but when I have ";" (minus the quotes) in the string the get removed on save! does anyone know how to fix this?
Code: if ($dr == "") {
$fnm = "$dir/$nm";
} else {
$fnm = "$dir/$dr/$nm";
}
$html=str_replace(chr(92).chr(34),chr(34),$html);
$html=str_replace(chr(92).chr(39),chr(39),$html);
$html=str_replace(chr(92).chr(92),chr(92),$html);
stripslashes($html);
$type2 = strrchr($nm,'.');
if ($type2 == "") {
echo "<font color = 'red'><object><b>Error you must add and
extention</b></object></font>";
echo "<br>Please wait... or <a href = 'dr=$dr&nm=$nm&html=$html'>Click Here</a>";
echo "<META HTTP-EQUIV=Refresh CONTENT='1;
URL=new.php?dr=$dr&nm=$nm&err=t&html=$html'>";
}
if (!$type2 == "") {
$fp=fopen("$fnm","w");
$data=fwrite($fp, $html);
fclose($fp);
echo "<font color = 'green'><object><b>File $nm Created</b></object></font>";
echo "<br>Please wait... or <a href = 'filemanager.php?'>Click Here</a>";
echo "<META HTTP-EQUIV=Refresh CONTENT='1; URL=filemanager.php?dr=$dr'>";
}
p.s. my code is messy |
|