Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 problem with removing ;
Google
Post new topic Reply to topic
Author Message
Camac
 
 


Joined: 30 Jan 2006
Posts: 22
Location: Australia

PostPosted: Thu Jul 13, 2006 6:55 am Reply with quoteBack to top

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
View user's profileSend private messageMSN Messenger
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT