I can't see any reason why you would get "too long to respond" error. If something is wrong with the code you should get a clearer message like it cannot find the included file or something.
If you haven't done so, you need to change the "/PATH/TO/" bit to the correct link for your server. If your Q2A site is the public_html folder (not in a subfolder), then you can do
require_once $_SERVER['DOCUMENT_ROOT'] . '/qa-include/qa-base.php';