• klymate

    (@klymate)


    Hello, I am trying to include a php script in my page. when i run the code, i get the following error.
    Parse error: syntax error, unexpected ‘/’ in /home/hcdproje/public_html/hcdp/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 1
    below is my code

    [insert_php]
    include($_SERVER[“DOCUMENT_ROOT”].”/hcdp/test.php” );
    [/insert_php]
    can anybody help me out?

    https://www.ads-software.com/plugins/insert-php/

Viewing 1 replies (of 1 total)
  • Plugin Author WillBontrager

    (@willbontrager)

    The include statement appears to be correct.

    The error may be in the test.php file.

    Insert PHP uses the eval() function to process the PHP code. It’s unable to report line numbers of include files, reporting only the line number within the [insert_php]…[/insert_php] tags where the error occurred.

    As a test, put the content of test.php between the [insert_php]…[/insert_php] tags. Any error messages should then point to the correct line number.

    Will

Viewing 1 replies (of 1 total)
  • The topic ‘Include Problem’ is closed to new replies.