Okay i run an SMF forum, and i added this line where the logo should be: include "http://gamefront.us/Themes/SullenMadness_RC2/ads.html"; But my ads don't show up. No errors tho. So i tried echo "test"; and it worked! but the ads wont showup. Please help.
try: include("http://gamefront.us/Themes/SullenMadness_RC2/ads.html"); If it doesn't work it is because URL fopen wrappers is not enabled in your PHP
why do you want to use a URL in the include when you are including from your own domain ? Either use the root path /home/cpanelusername/public_html/..... style, or take out the URL to leave the path in there i.e. include "./Themes/SullenMadness_RC2/ads.html"; Code (markup): URL fopen wrappers being off, would cause the file not to show.
i tried it without the http and with the http and it didn't work. i tried echoing the peice of code and it didn't work.
why not just keep it simple and use an iframe or is it not allowed ? If you removed the http, you might have gotten the path wrong. Try using include(getenv('DOCUMENT_ROOT')."/Themes/SullenMadness_RC2/ads.html"); Code (markup):