WordPress.org

Ready to get started?Download WordPress

Forums

About ABSPATH (4 posts)

  1. basketball
    Member
    Posted 9 years ago #

    I am a total php newbie so any help would be appreciated. I am trying to create some pages for my static pages for my site in a directory within my wordpress installation.
    For example my blog is http://basketball2k.com/site/ and the page I'm trying to create would be http://basketball2k.com/site/interactive/index.php So now when I try to copy the structure of the index.php file and put it in the interactive directoryt it keeps saying that

    Warning: main(ABSPATHwp-blog-header.php): failed to open stream: No such file or directory in /home/bball2/public_html/site/interactive/index.php on line 1

    Is their a way I can specify that the wp-blog-header.php is at /home/bball2/public_html/site/ and that's the only place it's at?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    In your wp install, it has this:
    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>

    For what you want, I would make that like this:
    <?php
    /* Don't remove this line. */
    require('../../wp-blog-header.php');
    ?>

    If that doesn't work, then:
    <?php
    /* Don't remove this line. */
    require('../wp-blog-header.php');
    ?>

    But I think the second one will work..

  3. anywhereis1995
    Member
    Posted 9 years ago #

    something about directory/path

  4. masquerade
    Member
    Posted 9 years ago #

    require('/home/bball2/public_html/site/wp-blog-header.php')

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.