Announcement

Collapse
No announcement yet.

PHP Inlcude Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Inlcude Error

    Hi. I am getting this error on php include:
    Warning: Unknown: Failed opening '/includefiles/file1.html' for inclusion (include_path='.;C:\php5\pear') in \global.php(389) : eval()'d code on line 2

    The file I am trying to include is file1.html. I have it in the websites root/includefiles folder. Based on the error msg, do I need to set the include_path variable somewhere? If so where? Thanks.

  • #2
    You need to use a relative path or the absolute path on the server for the include. If you forum is at /forum or /forums, I'd sugest trying "../includefiles/file1.html", though included files should be php, not HTML; outputting HTML at that point will cause problems with several things.
    http://www.zelaron.com/sigs/rotsig.gif

    Comment


    • #3
      Thanks

      Thanks for the info. I will try this.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X