While writing a string for a file, I keep getting tripped up. The thing is when I'm trying to include php code inside the file, it doesn't recognize it as php code. Instead it recognizes it as part of the html.
It's really weird because whenever I check the text file it has the proper php syntax.
This wasn't happening to me before while coding things like this, but happening now. Any thoughts?