If I am using PHP to pull in text for my website, I figured using eval() would be the way to have PHP function calls stored in the text string executed at run time. I'm, however, having trouble getting it to work.
Here is a quick layout of how I have things working. There are several text files that contain '::' seperated values (i.e. - [DATE]::[TEXT]::[USER]). My PHP code goes through each of the files and grabs/displays the information. Now, in one of the [TEXT] blocks, I have a call to a function ePoll(). It looks something like this: [start_text]Blah Blah Blah. Blah Blah. ePoll(2)[stop_text]. The call to ePoll(2) should create a poll. It works fine on the page if I don't include it in the text.
How would I go about getting the code to execute? I've done this once before, so I know it's possible. I tried chaging ePoll(2) to eval("ePoll(2);");, but that didn't work either.
Any help is appreciated. Thanks.