I want to replace mysql_real_escape_string
with mysqli_real_escape_string
in all php files on ubuntu desktop.... how do I do that?
@note - If this is a duplicate, then the "related questions" needs to be fixed
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityI want to replace mysql_real_escape_string
with mysqli_real_escape_string
in all php files on ubuntu desktop.... how do I do that?
@note - If this is a duplicate, then the "related questions" needs to be fixed
find . -name *.php -type f -print0 |
xargs -0 sed -i 's/mysql_real_escape_string/mysqli_real_escape_string/g'