Hi,
Following is some dummy HTML file:
I am reading it into a string using file_get_contents($file):HTML Code:<html> .... <?php echo 'HELLO!'; ?> ..... </html>
Now, I use eval() to exec PHP code within $x string.PHP Code:$x = file_get_contents($file);
But, no luck. Output turns out to have php code as originally embedded in HTML file.PHP Code:eval('$x = "$x";');
Any ideas?
Thanks.







Bookmarks