Load php file with jquery in single.php

Have a look at wp_localize_script(), which is exactly the right core function for your needs.
A short explanation on the usage can be found in this answer to the question “Pass PHP variable to javascript”.