WordPress.org

Ready to get started?Download WordPress

Forums

Code Insert Manager (Q2W3 Inc Manager)
php code insert (2 posts)

  1. scaltro
    Member
    Posted 1 year ago #

    PHP Parse error: syntax error, unexpected '<' in /var/www/wordpress/wp-content/plugins/q2w3-inc-manager/q2w3-inc-manager.php(1137) : eval()'d code on line 1

    I always had this error in my Apache while I'm trying to add php code on the header of each pages...

    this is the code
    <?php
    require_once('/var/www/owa/owa_php.php');
    $owa = new owa_php();
    $owa->setSiteId('xxxxxxx');
    $owa->trackPageView();
    $owa = & new owa_php;
    $owa->placeHelperPageTags();
    ?>
    But if I remove the <?php?> tag the text is just printed on the browser...
    How can I execute PHP code?

    http://wordpress.org/extend/plugins/q2w3-inc-manager/

  2. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    Hm... the syntax looks fine...
    Try some tests:
    1. Make a new insert. Try to execute an empty line of php code: <?php ?>
    2. Try to execute a simple php code: `<?php echo 'It works!'; ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic