During my application, i must open an wordpress publish on mouse click,and so i am delivering publish http req ..

My php is

<?php
//echo "Hello save post php";
require_once("wp-includes/post.php");

//$page = get_page_by_title( 'Taj Mahal' );
//wp_list_pages( 'include=' . $page->ID );


$my_id = 4;
$post_id_4 = get_post($my_id); 
//$title = $post_id_4->post_title;

//echo '$title';
?> 

On button clicking it return, as Lost passwords,

and so i guess user title password is needed, so either it will open login screen, or should i have to pass qualifications in php therefore it may directly open that publish?????

Thanks ahead of time