Free Ringtones - eBay - Home Loan - Charity Gifts - Northern Rock

PDA

View Full Version : Problem Getting validated


SEbasic
Oct 20th 2004, 7:35 am
Hi Shawn,

I'm having a problem getting vadlidated...

Any reason why?

http://www.seo-dev.co.uk

Cheers...

Also, the ad isn't being displayed on all pages of the site..

Only the index...

Do I neet to upload the ad_network.php file to the root of every folder on the site or just to the site root...

Cheers

digitalpoint
Oct 20th 2004, 7:53 am
Just the site root is fine... But you do need to add the include code to each page. As far as not being validated, it would be because the ads aren't on each page.

Are you getting any errors or anything for the pages it's not showing on?

SEbasic
Oct 20th 2004, 8:16 am
No nothing...

The ad code is on every page (I added it to the blogger template then republished the whole site)...

I'll try republishing again and see if that works...
__________
Nope... Didn't work.

Any other ideas?

digitalpoint
Oct 20th 2004, 8:20 am
You are seeing the actual PHP code on each page, or you added it to each?

SEbasic
Oct 20th 2004, 8:24 am
I added the code to each page (Through the blogger template form), and now there is nothing there...

I know that the pages have updated, because I placed the code in <p> tags which are now empty...

digitalpoint
Oct 20th 2004, 8:40 am
PHP code isn't showing in the source of the page, right?

SEbasic
Oct 20th 2004, 8:48 am
No, It's not there - where it was is now just blank...

I just emailed my hosting guy and made sure that php would parse the files in subdirectories as well, and he said that it definetly should...

See, I'm running this on IIS and as such don't have access to an .htaccess file, so I had to call him and ask him to get php to parse .html files for me too...
____

I just got another email from him telling me that the code is definetly being parsed by php...

digitalpoint
Oct 20th 2004, 8:52 am
Well... try a test... in the PHP code, add something simple like:
echo '0'; and see if it echos it on the page. Then you can at least tell if the PHP parser is working on the server or not.

SEbasic
Oct 20th 2004, 8:59 am
Yep... That worked...

It's in the footer - "TEST"...

digitalpoint
Oct 20th 2004, 9:05 am
Okay, so let's try this... in your ad_network.php file change this:

if (substr ($_SERVER['DOCUMENT_NAME'], -6) == '.shtml') {
ini_set ('zlib.output_compression', 0);
echo end ($ad_network);
}

to just this:

echo end ($ad_network);

and then take the echo function out of your template (so you just have the include).

SEbasic
Oct 20th 2004, 9:10 am
No, that didn't do it, and now the ads are being duplicated on the index page, so instead of having 5 ads, I have 10...

<edit> they aren't being duplicated any more</edit>

digitalpoint
Oct 20th 2004, 9:33 am
I dunno man... PHP on Windows sucks. :) Try using the full path to the ad_network.php file (full path on the server) rather than just the file name.

SEbasic
Oct 20th 2004, 9:36 am
I'll give it a go...

Cheers for the help Shawn...

SEbasic
Oct 20th 2004, 9:51 am
Yeah that did it...

Thanks Shawn