Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   does anyone know of a find and replace php script (http://www.greenguysboard.com/board/showthread.php?t=54324)

Tommy 2009-09-01 06:16 PM

does anyone know of a find and replace php script
 
Something I could maybe upload in a directory and it would change sponsor codes in that directory and sub directorys

Cleo 2009-09-01 06:23 PM

I use rsync to download only the html documents in the directories to my local machine. Then I use my favorite utility (any html editor will do) to do a find and replace and then use rsync to only re-upload the changed files.

SSH into your server,

To download the files.
Code:

rsync -avCP  --progress  --stats --exclude "jpg" --exclude "mpg" USERNAME@YOURDOMAIN.com:/SERVERPATH/TO/DIRECTORIES/ /YOURCOMPUTERS/LOACL/PATH
To upload the files.
Code:

rsync -avCP  --progress  --stats --exclude "jpg" --exclude "mpg" /YOURCOMPUTERS/LOACL/PATH/ USERNAME@YOURDOMAIN.com:/SERVERPATH/TO/DIRECTORIES

buttster 2009-09-02 12:51 AM

Tommy you might want to check with your hosting company, I know phatservers that I use finds and replaces codes for me when I run into any type of problems


All times are GMT -4. The time now is 01:13 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc