From: [EMAIL PROTECTED] Operating system: all PHP version: 4.3.0 PHP Bug Type: Feature/Change Request Bug description: Enhancing include()
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 bug report at http://bugs.php.net/?id=21612&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21612&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21612&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21612&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21612&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21612&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21612&r=support Expected behavior: http://bugs.php.net/fix.php?id=21612&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21612&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21612&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21612&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21612&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21612&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21612&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21612&r=gnused