Ashus.ashus.net

Full Version: Nahrazení obsahu souborů pomocí 'sed'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pro hromadné nahrazení deprecated funkcí použijte toto:
Code:
find . -name "*.php" -exec sed -i "s/mysql_escape_string/mysql_real_escape_string/g" '{}' \;

Tím nahradíme ve všech souborech s příponou php mysql_escape_string za mysql_real_escape_string.