[thelist] SOLVED: Making same modification to large number of files
Barney Carroll
barney at textmatters.com
Fri Feb 9 11:08:47 CST 2007
Austin Harris wrote:
> Make a file called footer.php* with the content in.
>
> Instead of having the content hard coded 300 times just put include ('/footer.php') or whatever. Next time just change footer.php not 300 odd files
>
> *or whatever flavour you want
>
> Austin
As I said, this is a legacy site. If the client were willing to pay for
it, I'd redesign the whole mess - but as it stands it's just as much
work (if not less) to replace the content, as opposed to replacing the
content with php hooks.
Regards,
Barney
More information about the thelist
mailing list