PHP Auto post Blogger Scripts Example

Today, We want to share with you PHP Auto post Blogger Scripts Example.In this post we will show you PHP Simple Auto post Blogger Scripts Example, hear for Auto post into Blogspot using php Source code? we will give you demo and example for implement.In this post, we will learn about PHP Automatically Auto post Content into Blogspot with an example.

PHP Auto post Blogger Scripts Example

There are the Following The simple About PHP Auto post Blogger Scripts Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop wordpress to blogger auto post, so the Auto Posts on Blogspot Automatically for this example is following below.

Auto Posts on Blogspot Automatically using PHP

<?php session_start();
    $email = "[email protected]";
    $pass = "Enteryourreallypassword"; //Jaydeep@!@#$%^
    $blogID= urlencode("blogger_id"); // like 6306924319904227886

    // Do any Not changes Modify Below source Code
    if(!isset($_SESSION['sessionToken'])) {

    $live_curl = curl_init("$email&Passwd=$pass&service=blogger&accountType=GOOGLE");
    curl_setopt($live_curl, CURLOPT_POST,1);
    curl_setopt($live_curl, CURLOPT_FOLLOWLOCATION ,1);
    curl_setopt($live_curl, CURLOPT_HEADER,0);
    curl_setopt($live_curl, CURLOPT_RETURNTRANSFER ,1);
    $data_result = curl_exec($live_curl);
    $resultArray = curl_getinfo($live_curl);
    $my_arr = explode("=",$data_result);
    $token = $my_arr[3];
    $_SESSION['sessionToken'] = $token;

    $entry = "

    Auto Post Blogger With PHP Script -


    Auto Post On Blogspot Using PHP script Example with Step By Step.



    $len = strlen($entry);

    $data_headers = array("Content-type: application/atom+xml","Content-Length: {$len}","Authorization: GoogleLogin auth={$_SESSION['sessionToken']}","$entry");

    $live_curl = curl_init();
    curl_setopt($live_curl, CURLOPT_URL, "$blogID/posts/default");
    curl_setopt($live_curl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($live_curl, CURLOPT_TIMEOUT, 4);
    curl_setopt($live_curl, CURLOPT_HTTPHEADER, $data_headers);
    curl_setopt($live_curl, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($live_curl, CURLOPT_UNRESTRICTED_AUTH, 1);
    curl_setopt($live_curl, CURLOPT_POST, true);
    $result = curl_exec($live_curl);
    $ERROR_CODE = curl_getinfo($live_curl);

    echo '

Angular 6 CRUD Operations Application Tutorials

Read :


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about PHP Auto post Blogger Scripts Example.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment