#21612 [Opn]: Enhancing include()
| From: | rc at opelgt dot org | Date: | Mon, 13 Jan 2003 11:04:46 +0000 |
| Subject: | #21612 [Opn]: Enhancing include() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29861@lists.php.net to get a copy of this message | ||
ID: 21612
User updated by: rc@opelgt.org
Reported By: rc@opelgt.org
Status: Open
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 4.3.0
New Comment:
At the moment include() is only supporting files as arguments.
Why not using array elements too?
My excample:
I have have a php-page that reads in text files and shows their
content:
http://christophorusschule-hamburg.de depending
on the two
parameters menu(m) and submenue(u).
For http://christophorusschule-hamburg.de/basis.php?m=6&u=3
I want to
show what setting of color and resolution is selected at the moment. So
I need to have php-code included. The source for this and all the other
pages resides in a txt-file and after exploding in an array element. I
want to use an if statement: if array element begins with <?php than
the content shall be included, otherwise the content shall be echoed.
With kind regards, Rüdiger
Previous Comments:
------------------------------------------------------------------------
[2003-01-13 04:58:39] rc@opelgt.org
At the moment include() is only supporting files as arguments.
Why not using array elements too?
My excample:
I have have a php-page that reads in text files and shows their
content: http://christophorusschule-hamburg.de
depending on the two
parameters menu(m) and submenue(u).
For http://christophorusschule-hamburg.de?m=6&u=3
I want to show what
setting of color and resolution is selected at the moment. So I need to
have php-code included. The source is in a txt-file and after exploding
in an array element. I want to use an if statement: if array element
begins with <?php than the content shall be included, otherwise the
content shall be echoed.
With kind regards, Rüdiger
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21612&edit=1