Skip to content

Instantly share code, notes, and snippets.



Forked from cebe/
Last active Dec 28, 2016
What would you like to do?
command for finding phpmailer files and line of code and change it to the latest version
for file in $(find /var/www/ -name 'class.phpmailer.php' -print) ; do
echo $file
cp $file $file.bak
cp ./class.phpmailer.php $file
# dir=$(dirname $file)
# chown $(stat -c '%U' $dir):$(stat -c '%G' $dir) $file

This comment has been minimized.

Copy link
Owner Author

@tibu tibu commented Dec 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment