Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stripslash help please

Status
Not open for further replies.

oshjosh

Technical User
Mar 11, 2002
34
0
0
TH
I have some ph I have posted below and would like to add the stripslash function to it but dont know where to start


function writer($value)
{
$fp = fopen ($this->filename,"w");
fwrite($fp,$value);
fclose($fp);
}

As ususal all help much appreciated
Rob
 
Try this:

function writer($value){
$fp = fopen ($this->filename,"w");
fwrite($fp,stripslashes($value));
fclose($fp);
}

frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top