Import Articles to Blogger/WP

abroms

New member
May 17, 2009
257
12
0
I have a bunch of articles in .txt format sitting on my hard drive, not doing anything. If I wanted to push these articles to wordpress or blogger blogs, how would I go about doing that? In a perfect world, I'd want to drip feed them to wordpress.com/blogger.com blogs without much work on my end.

Any ideas?
 


I have a bunch of articles in .txt format sitting on my hard drive, not doing anything. If I wanted to push these articles to wordpress or blogger blogs, how would I go about doing that? In a perfect world, I'd want to drip feed them to wordpress.com/blogger.com blogs without much work on my end.

Any ideas?

Wordpress and blogger both support email to post.
 
Ohh I understand now. So you're saying:

fopen -> fread -> mail?

Great idea, +rep. Followup question: I know how to open files that are in a directory on a website and such, but is it the same process to read something that's on my hard drive?

Thanks again.
 
Ohh I understand now. So you're saying:

fopen -> fread -> mail?

Great idea, +rep. Followup question: I know how to open files that are in a directory on a website and such, but is it the same process to read something that's on my hard drive?

Thanks again.

Well I use WAMP on my setup so it would be a localhost/ url for me.
 
Drip Feed Software

I have a bunch of articles in .txt format sitting on my hard drive, not doing anything. If I wanted to push these articles to wordpress or blogger blogs, how would I go about doing that? In a perfect world, I'd want to drip feed them to wordpress.com/blogger.com blogs without much work on my end.

Any ideas?

I use a Drip feed software that works for both Wordpress and Regular websites.
Check out:- WordPress Membership Plugin - Membership Script For WordPress Blogs And Regular Web Sites
 
XMLRPC. wordpress defo supports it, blogger probably does. I know in wordpress it's turned off by default. Write a simple script (python includes xmlrpc by default, nickycakes blog has a php version) that opens the text files, pipes them over xmlrpc.

file_get_contents() in php for reading a local file.
 
  • Like
Reactions: abroms
XMLRPC. wordpress defo supports it, blogger probably does. I know in wordpress it's turned off by default. Write a simple script (python includes xmlrpc by default, nickycakes blog has a php version) that opens the text files, pipes them over xmlrpc.

file_get_contents() in php for reading a local file.

Yeah, I think I'm going to go XMLRPC after doing a bit more research. I've run into a problem, though. When I try to run my script, I get an error:

Fatal error: Call to undefined function xmlrpc_encode_request() in path/to/file

I've been googling for a solid 20 minutes and I'm stumped. Can anyone help? I'm on ubuntu running LAMP, if that matters.

Thanks! (and +rep, mattseh)
 
Well I've got the php5-xmlrpc extension installed, and there's nothing xml-related commented out in my php.ini.

I guess all that leaves is recompiling PHP with that option included? I have no idea how to do that, so I'm back to google.