How to post to a Blog from Php script

Discussion in 'PHP' started by goodday09, Mar 10, 2009.

  1. #1
    Hi,

    I need to post to my blog automatically and I was wondering, how I can do it from a Blog.

    Any script, sample, pointers will be appreciated.

    Thanks
     
    goodday09, Mar 10, 2009 IP
  2. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Is this from remote or do you have access to the blog files themself?

    First you would have to figure out the blog post SQL structure then you would create a SQL call with php and fill in the information that is needed into that SQL insert statement.

    if your posting remotely I would use http://us.php.net/curl to remotely post to it.
     
    exodus, Mar 10, 2009 IP
  3. goodday09

    goodday09 Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I have access to the Blog files.

    The database fields should be know, so I am guessign there should already a script to add post entry based on SQL table or something like that.

    Any other suggestions?
     
    goodday09, Mar 10, 2009 IP
  4. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #4
    No, you need to know the SQL structure and create that file yourself. Then you can then tell that file what to enter into the database. That way you can code something yourself that you can make work for you.

    I would love to help if you getting an error with any of the code you have create yourself. When you have something to post to help debug then come back. :) Not here to do it all for you otherwise you would not learn.
     
    exodus, Mar 10, 2009 IP
  5. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #5
    Are you talking about automated blogging?
     
    pipes, May 2, 2009 IP
  6. fengfeng

    fengfeng Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Some blog support the "post via mail" ,U can write a php script mail the article to another blog.
     
    fengfeng, May 3, 2009 IP