Hello @ll
this is my first Q in forum ?
Ok, I have a text file on my android device which I send to server every 2 min’s
text file contain’s only 1 ( single line ) filename gps.txt
that single line in text file look’s like this 45:16.2432432;19:2465467;12;4
in a server directory I have filename gps.txt ( in that file I store data )
curently I use this php on my server ( named upload_file.php )
[code=php]<?php
$file_path = “uploads/”;
$file_path = $file_path . basename( $_FILES[‘uploaded_file’][‘name’]);
if(move_uploaded_file($_FILES[‘uploaded_file’][‘tmp_name’], $file_path)) {
echo “success”;
} else{
echo “fail”;
}
?>
but it only overwrite existing file!!!
how to modifty my existing file so that when I send new gps.txt with single line to add that line in gps.txt which is already on server ( not to overwrite it )
B.R.