I'm writing a php file that load data and save them to php file, every things works fine except when I'm trying to write a var (as var) into the file like:
$content="include 'pages/page1.html';
include 'pages/page2.html';";
$content.="$ChangingPage";
$content.="include 'pages/page3.html';;
I get error:
Notice: Undefined variable: ChangingPage in /MYHOST/pages/write_properties.php on line 75
I want the new php file to contain the ChangingPage as var ($)
$ChangingPageanywhere in your code, as far as I can tell. Also, I have no idea what are you trying to do with the$contentvariable declaration in the first line.