I have a .txt file that has some PHP coding (<?php echo setUrlVariables (); ?>) embedded into it.
It worked fine (the variables actually worked) when I had my PHP file 'include("myfil e.txt")' (treating the .txt file as part of the php scripting and not as plain text).
Now, I have it retrieving the .txt file from an XMLhttp get request and including it with the document.all.di vID.innerHTML command.
But now it treats the "<?php...." code in the .txt file as regular text when imported. Is there any way to make it recognize the php code as code instead of plain text??
Thanks in advance for any advice!!
-John
It worked fine (the variables actually worked) when I had my PHP file 'include("myfil e.txt")' (treating the .txt file as part of the php scripting and not as plain text).
Now, I have it retrieving the .txt file from an XMLhttp get request and including it with the document.all.di vID.innerHTML command.
But now it treats the "<?php...." code in the .txt file as regular text when imported. Is there any way to make it recognize the php code as code instead of plain text??
Thanks in advance for any advice!!
-John
Comment