I have a function in php that writes to a log file. I need to run it from javascript, which works fine, but it always returns undefined.
Here is my javascript code: