I am trying to call a PHP function from an external PHP file into a JavaScript script. My code is different and large, so I am writing a sample code here.
This is m
Try looking at CASSIS. The idea is to mix PHP with JS so both can work on client and server side.