Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

problem with removing ;
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Programming
View previous topic :: View next topic  
Author Message
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
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Programming
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group