Hi,
Is it possible to define a method of the class from which an 'eval' or 'include' is called within that eval or include? (In php 4.) E.g. I want 'myfunction()' to be a method of 'myclass' in the following:
<?php
class myclass {
function myclass() {
eval("function myfunction() { echo \"TEST\"; }");
}
}
?>
Thanks,
Tom
Possible to define methods within eval or include?
Moderator: General Moderators
-
gavagai123
- Forum Newbie
- Posts: 1
- Joined: Mon May 19, 2008 5:42 am
Re: Possible to define methods within eval or include?
I would advice you not to use eval() ...
What you are trying to achive in general?
What you are trying to achive in general?
There are 10 types of people in this world, those who understand binary and those who don't