Converting variables from an html include...
Posted on 2004-11-04
As a common way of working, I tend to code a lot of sites to include html files, simply to make editing the site by others a lot easier, using ordinaly development tools etc.
I include it using the following syntax...
open (DATA5, $memberhomepage)|| die("Could not open file!");
However, if I want to use variables in the included page, it will just output $variable rather than converting it to an actual variable.
I have done a find a replace for specific words sometimes for variables, but its quite a long winded way round. Is it possible to say kind of, replace all the instances of any $variables with the respective $variables content?
Thanks for any help in advance