Title: Extracting Posts From PHP Files
Last modified: August 19, 2016

---

# Extracting Posts From PHP Files

 *  Resolved [duder1209](https://wordpress.org/support/users/duder1209/)
 * (@duder1209)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/extracting-posts-from-php-files/)
 * About a year ago I was forced to take down my blog from my server. I had about
   200 posts on there and copied the blog directory from my server to my hard drive.
   I now need to recover these posts (primarily the titles/text) and ideally I’d
   like to keep a copy of them in a Word document.
 * Even if I have to put it back online in order to do this, that’s fine. The problem
   is, another blog now occupies the former blog’s URL. What should I do?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/extracting-posts-from-php-files/#post-1650212)
 * Do you have a copy of the original database? Because that’s where your posts 
   were stored – not in files.
 *  Thread Starter [duder1209](https://wordpress.org/support/users/duder1209/)
 * (@duder1209)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/extracting-posts-from-php-files/#post-1650215)
 * Well the blog that I have up now has taken over the folder/URL. Does that mean
   it discarded the old database?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/extracting-posts-from-php-files/#post-1650239)
 * If the MySQL database for the original blog is gone, then your content is gone
   with it. Your database has nothing to do with the files or the directory that
   they’re installed in. There’s a still a chance that your database was not removed
   from the server. Do you have access to phpMyAdmin (most hosting providers offer
   this in their control panel)?
 *  Thread Starter [duder1209](https://wordpress.org/support/users/duder1209/)
 * (@duder1209)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/extracting-posts-from-php-files/#post-1650241)
 * Yes. But when I looked at the wp_posts table I only see entries from my new blog.
   Is that the table where the posts would be?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/extracting-posts-from-php-files/#post-1650246)
 * Yes. If that’s the only MySQL database on your server, then I’m afraid the old
   database (including the content it held) is long gone. There’s a chance that 
   your hosting provider might have a backup on hand, but that would be your only
   option.
 *  Thread Starter [duder1209](https://wordpress.org/support/users/duder1209/)
 * (@duder1209)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/extracting-posts-from-php-files/#post-1650283)
 * Yeah it was awhile ago so that stuff is gone. Fortunately, I opened up an XML
   file and found most, if not all my entries in there. They’re a little mixed with
   some HTML code but it was easy to extract them. Hope this helps anyone else who
   finds themselves in my position!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Extracting Posts From PHP Files’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 6 replies
 * 3 participants
 * Last reply from: [duder1209](https://wordpress.org/support/users/duder1209/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/extracting-posts-from-php-files/#post-1650283)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
