Fix generated files

Tips submitted by PHPMaker users
Post Reply
sangnandar
User
Posts: 980

Fix generated files

Post by sangnandar »

There's a golden rule: Never ever change the generated files !!

But there are some cases where fixing generated files is inevitable. For that I've found a small handy program called FART (Find And Replace Text).
hxxp://fart-it.sourceforge.net/
No need to install. Just copy fart.exe into your C:\ drive then create a *.bat file.

For example:
filename: myFart.bat
@ECHO OFF
cd "C:\"
fart "C:\xampp\htdocs\app_dev\ewcfg14.php" "192.168.1.2" "127.0.0.1"
EXIT

Running this file will change connection string IP address inside ewcfg14.php from "192.168.1.2" to "127.0.0.1".

Use with caution. Always remember the golden rule.


mobhar
User
Posts: 11729

Post by mobhar »

As mentioned, try not to change customize the generated script file as possible.

For such case, then you should use "Database_Connecting" server event instead.


BarryNen
User
Posts: 2
Location: United Kingdom
Contact:

Post by BarryNen »

I am going to get this added to the repair tool. Will this work for 32 & 64 bit, and all versions of Windows?

Shane


Post Reply