Problem with php_include start

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lange
    Senior Member
    • Apr 2003
    • 499
    • 5.6.4

    Problem with php_include start

    I am using

    ob_start();
    require ("http://mydomain.com/file1.php");
    $included_file1 = ob_get_contents();
    ob_end_clean();

    ob_start();
    require ("http://mydomain.com/file2.php");
    $included_file2 = ob_get_contents();
    ob_end_clean();

    It works fine. Thanks.



    But with relative path:

    ob_start();
    require ("../file1.php");
    $included_file1 = ob_get_contents();
    ob_end_clean();

    ob_start();
    require ("../file2.php");
    $included_file2 = ob_get_contents();
    ob_end_clean();

    or with server path:

    ob_start();
    require ("/home/blabla/public_html/file1.php");
    $included_file1 = ob_get_contents();
    ob_end_clean();

    ob_start();
    require ("/home/blabla/public_html/file2.php");
    $included_file2 = ob_get_contents();
    ob_end_clean();

    The files are parsed on my homepage but I got "No Forum specified. If you followed a valid link, please notify the webmaster" if I click on a link (forumdispaly).

    Any idea ?
  • lange
    Senior Member
    • Apr 2003
    • 499
    • 5.6.4

    #2
    Anyone ?

    Comment

    • Jake Bunce
      Senior Member
      • Dec 2000
      • 46598
      • 3.6.x

      #3
      Does the forum in question (from the forumdisplay.php page) use a different style (and therefore a different phpinclude_start template)? If so, maybe there is something wrong in that other template.

      Otherwise I don't know what could be causing this except for a problem in the required files.

      Comment

      • lange
        Senior Member
        • Apr 2003
        • 499
        • 5.6.4

        #4
        Originally posted by Jake Bunce
        Does the forum in question (from the forumdisplay.php page) use a different style (and therefore a different phpinclude_start template)? If so, maybe there is something wrong in that other template.

        .
        The forum use six styles with the same php_include_start content.

        I would like to use relative path because it is faster than "http..." (from my tests).

        Comment

        • Jake Bunce
          Senior Member
          • Dec 2000
          • 46598
          • 3.6.x

          #5
          Sorry, I don't know what is causing that.

          Comment

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