fuckoff222
Technical User
Hello Folks,
What I am trying to do here, is store the results of a virtual() include in to a variable. I am using virtual, as opposed to require or include, because the file must run through apache first, as it has perl code. But the file returns simple one string of text, a name. Is there ANY way at all possible to store the contents of the virtual() include to a variable, but WITHOUT running the code. For example, people have suggested that I try and use eval() to do this. But eval() immediately evaluates the code, and thus I have the contents of the file floating somewhere on my HTML page. Is there any way to store the result of a virtual() include in to a variable, as a string?
What I am trying to do here, is store the results of a virtual() include in to a variable. I am using virtual, as opposed to require or include, because the file must run through apache first, as it has perl code. But the file returns simple one string of text, a name. Is there ANY way at all possible to store the contents of the virtual() include to a variable, but WITHOUT running the code. For example, people have suggested that I try and use eval() to do this. But eval() immediately evaluates the code, and thus I have the contents of the file floating somewhere on my HTML page. Is there any way to store the result of a virtual() include in to a variable, as a string?