I'm scratching my head slightly about how to do the following. I have
roughly 800 PHP includes in as many directores, 2 levels deep. Inside each
include I have the same 2 variables, but with different values:
$title = "This is the Title";
$alt = "This is the another Title";
Obiously, the values are different in each include, but the layout is the
same. What I would like to do is replace the above in each file with this:
$title = "This is the Title";
$titlecopy = "This is the Title";
$alt = "This is the another Title";
So basically I want the $title variable duplicating on the line below,
keeping the same value, but renaming itself to $titlecopy. I could explain
why I need to do this, but it's a long story...
I'm not even sure if I need to be using PHP to do this? or some text program
that will allow me to do it? either client or server side?
many thanks for any help.