I have this code:
Expand|Select|Wrap|Line Numbers
- <?php
- $myfile = "$xxx.txt";
- $work = fopen ($myfile, "r");
- $hits = fread ($work, filesize($myfile));
- fclose ($work);
- echo "xxxx: <b>$hits</b>";?>);
- $filenameb = "stats.php";
- $fdb = fopen ($filenameb, "a");
- fwrite ($fdb,$contentsb);
- fclose ($fdb);
- ?>
But I can't because of the double quotes! And if I use single quotes then the code won't work.
What I have is this:
Expand|Select|Wrap|Line Numbers
- $MYVARIABLE = "
- <?php
- $myfile = "$xxx.txt";
- $work = fopen ($myfile, "r");
- $hits = fread ($work, filesize($myfile));
- fclose ($work);
- echo "xxxx: <b>$hits</b>";?>);
- $filenameb = "stats.php";
- $fdb = fopen ($filenameb, "a");
- fwrite ($fdb,$contentsb);
- fclose ($fdb);
- ?>
- ";
Is there any way of doing this?