Kamala Harris - Find jobs - Boxing Class - Kamala - Free Advertising

PDA

View Full Version : Ad network - Any clues?


THT
Aug 11th 2004, 2:16 am
Im trying to use the ad network on my site
Ive configured it as per the document tation and tried to auto validate.

But there is nothing on the page when loaded - no errors - nothing

just blank white space

any clues?

digitalpoint
Aug 11th 2004, 10:48 am
Do you have a URL? What type of site is it?

THT
Aug 21st 2004, 7:50 am
I have now tried on 2 sites

its just a PHP based site - and the PHP all works etc.
The current url it on is All Free Recipes (http://www.all-free-recipes.com) it should be at the bottom o the page. but its not

the code is in the page for sure as if i edit the URl to point to a false locaton errors appear - theres just nothing on the page?

Any ideas shawn?

digitalpoint
Aug 21st 2004, 8:25 am
Well if you go to http://www.all-free-recipes.com/ad_network.php there is no file, so the ad network PHP file isn't on the server.

THT
Aug 21st 2004, 8:28 am
well the file is in the Includes folder and is called ad_network_ads.php

ie

http://www.all-free-recipes.com/Includes/ad_network_ads.php

digitalpoint
Aug 21st 2004, 8:33 am
Try putting both files in the root (just as a test).

Foxy
Aug 21st 2004, 8:40 am
Hey THT what are you doing what do you want to do with this site?

As a foodie I am interested

Foxy
Aug 21st 2004, 8:42 am
BTW at the bottom of your advertise page you are getting

Warning: main(http://www.all-free-recipes.com/Includes/ad_network_ads.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in http://www.all-free-recipes.com/Includes/footer.inc on line 16

Warning: main(): Failed opening 'http://www.all-free-recipes.com/Includes/ad_network_ads.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:../:../../:../../../:../../../../') in http://www.all-free-recipes.com/Includes/footer.inc on line 16

THT
Aug 21st 2004, 8:43 am
sorry foxy im not sure i undertsand the question?

Shawn files are now in root of www.all-free-recipes.com

ive noticed that the ad_network_ads.txt file is filling up but .php just not displaying them!

THT
Aug 21st 2004, 8:44 am
you must have caught it just as i was updating

BTW at the bottom of your advertise page you are getting

Warning: main(http://www.all-free-recipes.com/Includes/ad_network_ads.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in http://www.all-free-recipes.com/Includes/footer.inc on line 16

Warning: main(): Failed opening 'http://www.all-free-recipes.com/Includes/ad_network_ads.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:../:../../:../../../:../../../../') in http://www.all-free-recipes.com/Includes/footer.inc on line 16

Foxy
Aug 21st 2004, 8:47 am
sorry foxy im not sure i undertsand the question?


The question is

Why are you putting up a Recipe site? What is your motive and what do you want to achieve?

Foxy
Aug 21st 2004, 8:49 am
Your google ads aren't showing but that page is now ok but no coop ads

THT
Aug 21st 2004, 8:50 am
The site was put up mainkly because there are a lot of searches done for recipes

have a look how many searches are done on chicken recipes?

I also found that it shouldnt be too hard to get the deep pages highly listed on google.

I mean ive done no SEO on the page and im in top 10 for many of the deep pages.

Also, its another place i can sell advertising and links to my own other sites.

THT

digitalpoint
Aug 21st 2004, 8:54 am
What is the exact PHP you are using to call the system? (I'm assuming in the footer.inc file)

THT
Aug 21st 2004, 9:14 am
it is and the code is :


<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include_once ('http://www.all-free-recipes.com/ad_network_ads.php');
echo $ad_network;
?>

digitalpoint
Aug 21st 2004, 9:15 am
You need to use the code as given by the setup...
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include_once ('ad_network.php');
echo $ad_network;
?>

THT
Aug 21st 2004, 9:31 am
all ive done is change the include path?

Surely thats not different to renaming the file?

Foxy
Aug 21st 2004, 11:00 am
The site was put up mainkly because there are a lot of searches done for recipes

have a look how many searches are done on chicken recipes?

I also found that it shouldnt be too hard to get the deep pages highly listed on google.

I mean ive done no SEO on the page and im in top 10 for many of the deep pages.

Also, its another place i can sell advertising and links to my own other sites.

THT

I thought that might be the case - we will, with your agreement, do some business here in the future as we have a big interest in this area.

By the way where did you grab all the recipes from - I don't want them - just curious - perhaps PM me if you want. :)

digitalpoint
Aug 21st 2004, 11:32 am
all ive done is change the include path?

Surely thats not different to renaming the file?
Trust me, it matters... you are including the output of a HTML file when you do it your way. The default/normal way is to evaluate the PHP code itself.

Since the script doesn't output anything, it will always be blank when including the output. Bottom line is including via a local file or via the HTTP protocol will yield two entirely different results.

THT
Aug 21st 2004, 11:59 am
cheers shawn - working now!