Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
307 views
in Q2A Core by
edited by

Hello sir, can you please explain me this in brief? 
http://docs.question2answer.org/code/external/
I tried copying and pasting the same code inside public_html. but it showed error like 'took too long to respond' . am i wrong in doing this or where should i write my custom code as per that link says?

I want to display username on external page. what should i do? where should i paste the code?

 HELP ME PLEASE

1 Answer

+2 votes
by

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';

by
I Copied the same code(Given Here http://docs.question2answer.org/code/external/ ) inside public_html folder but i got no responding. I tried from different browsers.
Can you show me an small example?
...