WordPress.org

Ready to get started?Download WordPress

Forums

inline php error (1 post)

  1. alexandru.manolache
    Member
    Posted 5 years ago #

    hello everybody. I use the plugin inline php, but when i use it i get this error:

    Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/apolloni/public_html/test/wp-content/plugins/inline-php/exec_php.php5(4) : eval()'d code on line 1

    Can anyone help me with it?

    This is the code in the file:

    <?php
    function exec_php($matches){
    try {
    eval('ob_start();'.$matches[1].'$inline_execute_output = ob_get_contents();ob_end_clean();');
    } catch (Exception $e) {
    }
    return $inline_execute_output;
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by alexandru.manolache
  • This topic is not resolved
  • WordPress version: 2.7

Tags

No tags yet.