I have two buttons where, actually, pushing, I can save and then load a static file using:
file_put_contents('results.json', $result); (Save button)
$arr1= json_decode(file_get_contents('results.json'),true); (Load button)
Using these commands I save and load a static file, and it is located in the same folder of the original .php.
Now, I would like to choose in which path the file must be saved, choosing for each new file saved, the path and personal file name. I think that I need something similar to the Java language
JFileChooser jc = new JFileChooser();
But Now I need it in PHP or Javascript.
Could you help me? Thanks in advance.