I have a js function that make some ajax post and a php handler that parse the $_POST and do something. I would use in js and php the same constants. For example if i put some define in php:
define('done','1',TRUE);
I would like to have it on js too. Are there some way to have some constants declared one time and usable in all this 2 languages?