note 18488 added to function.eval
| From: | spam at seahat dot com | Date: | Thu, 24 Jan 2002 23:01:15 +0000 |
| Subject: | note 18488 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25798@lists.php.net to get a copy of this message | ||
One thing I didn't see mentioned that I had to figure out myself (which may be different in the
latest version of php) is you must declare your globals in the eval()'d text if you want to get
some vars from the source you are calling from. Just think of it as a function in its own file
(despite any lack thereof).
--
http://www.php.net/manual/en/function.eval.php
http://master.php.net/manage/user-notes.php?action=edit+18488
http://master.php.net/manage/user-notes.php?action=delete+18488
http://master.php.net/manage/user-notes.php?action=reject+18488