WordPress.org

Ready to get started?Download WordPress

Forums

Error handling (2 posts)

  1. mike
    Member
    Posted 8 years ago #

    I am retrieving blog posts from /blog/ from the above directory using 'require 'blog/wp-blog-header.php';' Unfortunately, if there is an error -- say mysql connection -- the whole page that is retreiving those posts will put up a WordPress error message :"Error establishing data connection".

    I would like to put a simple if statement around the require command that will make sure I don't try to retreive something that I can't. Or where do I modify the error message so that I can do this?

  2. mike
    Member
    Posted 8 years ago #

    Also, I do know about Magpie for retrieving through RSS. However, it was too slow (we get 90,000 uniques/day....)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags