RE: [PHP-DEV] include() like functionality for strings

2001-10-02 Thread Andi Gutmans
From: Andi Gutmans [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, October 02, 2001 2:37 AM >To: Chris Newbill; PHP DEV >Subject: RE: [PHP-DEV] include() like functionality for strings > > >I must have misunderstood you. Weren't you asking for an eval() which >starts PHP in HTM

RE: [PHP-DEV] include() like functionality for strings

2001-10-02 Thread Chris Newbill
Chris Newbill; PHP DEV Subject: RE: [PHP-DEV] include() like functionality for strings I must have misunderstood you. Weren't you asking for an eval() which starts PHP in HTML mode instead of PHP code mode? Andi At 06:06 PM 10/1/2001 -0600, Chris Newbill wrote: >Why would we have to pa

RE: [PHP-DEV] include() like functionality for strings

2001-10-02 Thread Andi Gutmans
>This would probably be best as a new function. I'm not sure how it would >affect BC if eval was modified to handle this. > >-Chris > >-Original Message- >From: Andi Gutmans [mailto:[EMAIL PROTECTED]] >Sent: Monday, October 01, 2001 5:55 PM >To: Chris New

RE: [PHP-DEV] include() like functionality for strings

2001-10-01 Thread Chris Newbill
nt: Monday, October 01, 2001 5:55 PM To: Chris Newbill; PHP DEV Subject: Re: [PHP-DEV] include() like functionality for strings There is no problem in getting it to work but the question is if we can do it in a nice way. How would eval() know if it's evaling something which should start in a PHP

Re: [PHP-DEV] include() like functionality for strings

2001-10-01 Thread Andi Gutmans
There is no problem in getting it to work but the question is if we can do it in a nice way. How would eval() know if it's evaling something which should start in a PHP or HTML context? You'd have to send it another argument. This would start being a bit ugly. Is it such a big deal? Andi At 05

[PHP-DEV] include() like functionality for strings

2001-10-01 Thread Chris Newbill
Not sure what discussion has been done on this subject before, but here it goes. I wan't to be able to use a function that does the same thing as include, except instead of passing a file name I pass the actual string to be processed. This differs from eval() because the string may be all HTML.