- Messages
- 562
- Reaction score
- 1
- Points
- 18
Salvatos
salvatos.x10hosting.com
Advanced Plan
My account was lost in the last server transfer and I am now working on my site on the sustained server. Everything seems to be fine, except for one thing: includes do not seem to work properly. My main page is made of multiple frames (includes) that work fine, but I can't get the php ad code to work. It shows the following error:
I had the same problem on another part of my domain, made mostly of html (although I gave it php extensions in order to add the ad code), so it should not be a problem specific to footer.php. It looks like there is a setting in the server configuration that prevents me from activating the ad, and probably other types of includes, which is weird.
I tried to put the javascript code everywhere, and it works fine, but I fear I might have forgotten some pages and I would not want to be suspended because of that =/
Is there some configuration I have to change in the cPanel or is it a problem with the server, a mistake in my code...?
Thanks for your help!
salvatos.x10hosting.com
Advanced Plan
My account was lost in the last server transfer and I am now working on my site on the sustained server. Everything seems to be fine, except for one thing: includes do not seem to work properly. My main page is made of multiple frames (includes) that work fine, but I can't get the php ad code to work. It shows the following error:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/salvatos/public_html/rpg/footer.php on line 10
Warning: include(http://staff.x10hosting.com/adCode.php?ad=advanced) [function.include]: failed to open stream: no suitable wrapper could be found in /home/salvatos/public_html/rpg/footer.php on line 10
Warning: include() [function.include]: Failed opening 'http://staff.x10hosting.com/adCode.php?ad=advanced' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/salvatos/public_html/rpg/footer.php on line 10
I had the same problem on another part of my domain, made mostly of html (although I gave it php extensions in order to add the ad code), so it should not be a problem specific to footer.php. It looks like there is a setting in the server configuration that prevents me from activating the ad, and probably other types of includes, which is weird.
I tried to put the javascript code everywhere, and it works fine, but I fear I might have forgotten some pages and I would not want to be suspended because of that =/
Is there some configuration I have to change in the cPanel or is it a problem with the server, a mistake in my code...?
Thanks for your help!