Re: [PHP] Executing a string with both html and php inside it..

2001-03-17 Thread Aviv Revach
Hey! Shaun, I'm really glad to say that I finally solved the problem I had with "executing a string that contains both HTML and PHP inside it", and it's all thanks to you! Thank you very much - Aviv Revach At 10:37 15/03/01 -0500, you wrote: Hey, I glanced over your message, and you can

Re: [PHP] Executing a string with both html and php inside it..

2001-03-15 Thread Aviv Revach
Hey! The function 'eval()' can't be used here. I already tried working with it and failed. eval() is being used for running PHP code. My string contains HTML tags with PHP code inside(in '?php' and '?' tags), not only PHP as eval() requires. Do you have any other suggestion? Thank you in

Re: [PHP] Executing a string with both html and php inside it..

2001-03-15 Thread Christian Reiniger
On Wednesday 14 March 2001 12:50, you wrote: My string contains HTML tags with PHP code inside(in '?php' and '?' tags), not only PHP as eval() requires. Do you have any other suggestion? AFAIK there's no other way than using include(). Why do you need that anyway? What should I do in

Re: [PHP] Executing a string with both html and php inside it..

2001-03-15 Thread Aviv Revach
Hey! I would like to thank you and Mark for your quick reply. What am I trying to accomplish is the following: I have created an engine which separates my website's code and design. The code is stored in one file(code.txt) and the design in another(design.txt). The engine loads up

Re: [PHP] Executing a string with both html and php inside it..

2001-03-15 Thread Christian Reiniger
On Wednesday 14 March 2001 16:26, you wrote: Hey! I would like to thank you and Mark for your quick reply. What am I trying to accomplish is the following: I have created an engine which separates my website's code and design. The code is stored in one file(code.txt) and the design in

[PHP] Executing a string with both html and php inside it..

2001-03-14 Thread Aviv Revach
Hey! What should I do in order to execute the next string: $str = "html\n" $str .= "blabla\n"; $str .= " ?php echo \"hello!\"; ?\n"; $str .= "blabla\n"; $str .= "/html\n"; When I tried using 'echo' with the string, but the php code didn't work... Is there any way of doing this