Weedpacket wrote:
As far as I can tell, the code strips backslashes (which aren't there in the example code, but I'm presuming it stands for arbitrary stuff that does contain slashes when necessary) from a string and writes the result to a file, so that in this case a file that contains
<h1>Page</h1><? any_php_code(); ?>
Yes, you're 100% right. The case thing is because I just wrote it as an example and mixed it up...
The problem is, that IT IS PARSED, while I DON'T WANT TO PARSE the code in $myvar, as it should be written into the file, which will be HTML/PHP page. The problem is, that when i use "<?" or "<?php" tag, the $myvar became empty... It used to work, but don't work now and I have no idea how to fix it.
The code is inside a application, which allows to define tables for MySQL, save settings, and generate web sites to:
So you see it's a huge problem :-( as I have a lot of code hanging on the problem...