Replace string in all files in a folder

I have more than 500 .php files in a folder.

These files have a file path inside it, like

$path = "/home/username/public_html/uploads/";

Recently i have changed the site to another server, in the new server, the path is different, so i need to change all $path variables to

$path = "/home/myfolder/uploads/";

New server OS is FreeBSD 5.3.

All php files are in a folder

/config/

How i make the changes in all PHP Files ?

 

 

 

 

Top