Sorry for all the questions..
working on converting things to php..
and i decided to have a conistant look.. i found it easy todo this with php..
trying to figure out how to convert this perl script..
sorry if nobody knows perl.. but i thought i'd ask..
okay, firstly, what is the equivalent to $dbh->quote($var);
i don't want people to be able to enter items that can screw up a mysql query..
such as "; delete * from *;"
or something to that effect
Nextly, how would i prevent bad items, so when i use like mail, it won't mess things up.. in perl i use:
$subject =~ s/\[^A-Za-z]/\$subject/g;
this was to prevent people from doing "| rm -rf /"
or something to that effect...
make sense? can yu help?
Update: I think the regex for subject is done with ereg_replace... like $subject=ereg_replace("[^A-Za-z]", $subject); but i know thats not 100% complete...
working on converting things to php..
and i decided to have a conistant look.. i found it easy todo this with php..
trying to figure out how to convert this perl script..
sorry if nobody knows perl.. but i thought i'd ask..
okay, firstly, what is the equivalent to $dbh->quote($var);
i don't want people to be able to enter items that can screw up a mysql query..
such as "; delete * from *;"
or something to that effect
Nextly, how would i prevent bad items, so when i use like mail, it won't mess things up.. in perl i use:
$subject =~ s/\[^A-Za-z]/\$subject/g;
this was to prevent people from doing "| rm -rf /"
or something to that effect...
make sense? can yu help?
Update: I think the regex for subject is done with ereg_replace... like $subject=ereg_replace("[^A-Za-z]", $subject); but i know thats not 100% complete...
