Title: Include Problem
Last modified: August 22, 2016

---

# Include Problem

 *  [klymate](https://wordpress.org/support/users/klymate/)
 * (@klymate)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/include-problem/)
 * 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://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

Viewing 1 replies (of 1 total)

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/include-problem/#post-5849819)
 * 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.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/include-problem/#post-5849819)
 * Status: not resolved