php ads not working

Status
Not open for further replies.

Energritz

New Member
Messages
69
Reaction score
0
Points
0
Ive been tesing my new site out today , and then when i finished i finally added the ad codes , only to find out that the php error comes up, heres what it says

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/***/public_html/head.php on line 6

Warning: include(http://staff.x10hosting.com/adCode.php?ad=advanced) [function.include]: failed to open stream: no suitable wrapper could be found in /home/***/public_html/head.php on line 6

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/***/public_html/head.php on line 6

I replaced my account name with *** for security reasons.

So im sure this isnt my problem, the code is there un-altered
 

Energritz

New Member
Messages
69
Reaction score
0
Points
0
@Brandon
Yeah ive tried that 5 times already still no email..

@YamiKaitou
Im using the <? include("http://staff.x10hosting.com/adCode.php?ad=advanced"); ?> Link for the Ads so changing the Files get wont make much difference
 
Last edited:

YamiKaitou

Member
Messages
636
Reaction score
0
Points
16
Im using the <? include("http://staff.x10hosting.com/adCode.php?ad=advanced"); ?> Link for the Ads so changing the Files get wont make much difference

Try using <? file_get_contents("http://staff.x10hosting.com/adCode.php?ad=advanced"); ?> instead
 

Micro

Retired staff <i> (11-12-2008)</I>
Messages
1,301
Reaction score
0
Points
36
no, do

<?php echo file_get_contents("http://staff.x10hosting.com/adCode.php?ad=advanced"); ?>
 

Energritz

New Member
Messages
69
Reaction score
0
Points
0
@Micro
Thanks it works now

maybe x10 staff can change that for future people?, just a suggestion
 

nol888

New Member
Messages
292
Reaction score
0
Points
0
probably this happened because security doesn't allow URL includes? I don't really know, just hazarding a guess.
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
probably this happened because security doesn't allow URL includes? I don't really know, just hazarding a guess.

Pretty sure that is whats causing it actually:
Code:
[B]Warning[/B]: include() [[URL="http://kfs.x10hosting.com/function.include"][U][COLOR=#0000ff]function.include[/COLOR][/U][/URL]]: URL file-access is disabled in the server configuration in [B]/home/***/public_html/head.php[/B] on line [B]6
[/B]
It's off for a reason (security) but it also happened to kill the php ads.


If all else fails, do what I did: put the javascript ad code in a separate html file (in my case ads.html), then use <?php include('ads.html'); ?>

Not the best fix, but it's enough of one to stop you from getting suspended :p
 
Status
Not open for further replies.
Top