Details: I have an application where:
I have an AJAX request with JQuery triggered every time I new users are inserted by passing the necessary data to a PHP file that receives them via POST and creates a JSON file with these data.
The data from the JSON file will be interpreted with C language using libjson for later storing in the database sqlite.
Question: How to make the C language "wait" and create a warning when this new file is generated so that another C function can catch it automatically and play in the second process?