newbie php question (3 posts)

  1. macmiller
    Posted 11 years ago #

    newbie php? i have a simple file out there on coolthaihouse.com/blog/wptest.php as follows
    /* Don't remove this line. */
    require('./wp-blog-header.php'); ?>
    <?php bloginfo('info'); ?>
    where it works fine. i also have placed the same file in coolthaihouse.com/wptest.php where it returns the following:
    Fatal error: Call to undefined function: get_posts() in /home/coolth3/public_html/wptest.php on line 3
    i want to integrate some wp calls on the non blog pages. can you tell me how to set up this file so I can use it on the non blog side (coolthaihouse.com) as a test?
    I did try <?php
    /* Don't remove this line. */
    require('home/coolth3/public_html/blog/wp-blog-header.php'); ?>
    but this didn't seem to help.
    thanks. and blessings to all you code gods.

  2. mike
    Posted 11 years ago #

    How many times have you asked this?

  3. macmiller
    Posted 11 years ago #

    i'm not sure how many time i asked it.... us Alzheimer's patients get confused easily. anyway, thanks for the help all.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.