In a php file i have used include to include the following js.php file and prior to that i have included the jquery file.
include
Another point to check: Maybe you have a PHP error in your program. A PHP Fatal error exits the script and $(document).ready will never be executed.
$(document).ready
Depending on your server settings or on your CSS you might not see the Fatal error message.