How to write a PHP code (using public id) that can embed into HTML file (abc.html) when we open that HTML file that has to call another PHP file(there we can insert stats of that file into database).
if i cannot do this in php, is there any other way except renaming html file extension to php extension
Do you mean this?
or
using
exec('php foo.php');to call another php file?or
including another php file using
EDIT:
Or you can use ajax to call a .php file to the abc.html file.
You need to have the jquery library which can be downloaded here.