From:             donato dot f at tiscali dot it
Operating system: Linux
PHP version:      4.4.7
PHP Bug Type:     Feature/Change Request
Bug description:  Include (string)

Description:
------------
Scenario:
a database driven CMS, article contents are retrieved from the database
and stored into a string variable.
The output is usually shown using "echo".
If the article contains some php code it is not executed, but printed on
screen.
The alternative is to write the entire article as php code, retrieve it
and then process it using "eval".
An even more complicated variant is to create a temporary file, containing
both xHTML and php code, and then process it using "include".

It would be extremely useful to have a variant of the "include" function,
that can take as input not just a file path, but a string variable,
containing both xHTML and php code.



-- 
Edit bug report at http://bugs.php.net/?id=42934&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42934&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42934&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42934&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42934&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42934&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42934&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42934&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42934&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42934&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42934&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42934&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42934&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42934&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42934&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42934&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42934&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42934&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42934&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42934&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42934&r=mysqlcfg

Reply via email to