Android-Error-Reporter icon indicating copy to clipboard operation
Android-Error-Reporter copied to clipboard

how could be php sample?

Open hvmunlimited opened this issue 12 years ago • 1 comments

hi sorry for my poor English, just i had a question about the php file that must be located in the server, cause i dont know any php , i wanted to know how could be source of a php file that emails the error to a specific email?

thanks

hvmunlimited avatar Nov 06 '13 13:11 hvmunlimited

here is simplest php you can use

if(isset($_GET['project']) && $_GET['project']){

    $_POST['time']=date('Y-m-d H:i:s');

    //$_POST['raw']=file_get_contents('php://input');
    //$_POST['server']=$_SERVER;
    mail('[email protected]',$_GET['project'].' Android App Error Report',var_export($_POST,true));

}

dev-mraj avatar Jan 06 '15 09:01 dev-mraj