Running eval without Web.config modification
Posted: October 12th, 2012, 8:56 pm
Hi,
I'd like to run script through Eval() without having to touch the Web.config (I can't because of other reasons). Is it possible to load in basic PHP libraries still? I've read the following resources: http://www.php-compiler.net/blog/2011/php-code-c-sharp, http://www.php-compiler.net/blog/2011/i ... langer-web, viewtopic.php?f=3&t=495, viewtopic.php?f=3&t=725
I've tried to load php4ts, php5ts, PhpNetClassLibrary with Assembly.Load(), they're apparently loaded, but e.g. the code echo str_replace("i", "k", "iiiiii"); still gives the "Call to undefined function: 'str_replace'" error.
Could you please help me?
Thank you in advance!
I'd like to run script through Eval() without having to touch the Web.config (I can't because of other reasons). Is it possible to load in basic PHP libraries still? I've read the following resources: http://www.php-compiler.net/blog/2011/php-code-c-sharp, http://www.php-compiler.net/blog/2011/i ... langer-web, viewtopic.php?f=3&t=495, viewtopic.php?f=3&t=725
I've tried to load php4ts, php5ts, PhpNetClassLibrary with Assembly.Load(), they're apparently loaded, but e.g. the code echo str_replace("i", "k", "iiiiii"); still gives the "Call to undefined function: 'str_replace'" error.
Could you please help me?
Thank you in advance!