php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #21612 Enhancing include()
Submitted: 2003-01-13 04:58 UTC Modified: 2003-04-29 10:00 UTC
From: rc at opelgt dot org Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.0 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rc at opelgt dot org
New email:
PHP Version: OS:

 

 [2003-01-13 04:58 UTC] rc at opelgt dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-13 05:04 UTC] rc at opelgt dot 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/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
 [2003-04-29 10:00 UTC] andrey@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

see eval().
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 12 10:01:36 2024 UTC