For now i dont use any php file to read the data.
Only to send i used php
<?php
header("Access-Control-Allow-Origin: *");
$postdata = $_POST['postdata'];
echo($postdata);
$file = 'Products_List.txt';
// Open the file to get existing content
$current = file_get_contents($file);
// Append a new person to the file
$current = $postdata;
// Write the contents back to the file
file_put_contents($file, $current);
?>
URL -> "https://monday.000webhostapp.com/Products_list.php?postdata"
Data -> "postdata=" & URLEncode(Array.AsJSON)
Method -> "POST"
the file update with the arrays sets.
When i try to read the Products_List.txt i use
AJAX request -> "https://monday.000webhostapp.com/Products_List.txt"
Nothing happen on complete , on progress or on error.
Cant AJAX read a txt file direct?
Note that i use NW.js for export.