Hello, I am not a php programmer. Slightly familiar with it though. I pasted the code onto my page at the bottom. However, it does not show the ads. Can someone take a look? www.lendinghandsmortgage.com I only copied the code into the home page. Am I required to put it on every page? Even link pages?
Your page is not a PHP page (or at least not being evaluated as one), because the code you put is showing the page source. Ads need to be on all pages.
your page is not parsing the php as php code. Check the source of your page and you will see it in there. Did you setup your .htm pages to be parsed for php in an .htaccess file? <edit>Chachi is slower than DP</edit>
So do all of my pages in my site have to be PHP in order for this to work? Or can I insert some additional php code into all of my pages and keep them with the .htm extensions?
If you setup your server to parse .htm files as PHP, then you could do it without changing your file extensions.
Yes chachi, I did add the code onto a notepad and named it .htaccess Does it matter whether I upload it as binary or ASCII? Is the txt file the only one that needs to be CHMOD 777?
Here is the way I added the php code: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[1],$ad_network[2],$ad_network[3],$ad_network[4],$ad_network[5]; ?> Is that correct? Also, would it make any difference if I CHMOD the txt file as 755?
Sorry for taking up your time. I am sure you are doing a million things at once and dealing with many people just as confused as I am. In order to get the server to parse my .htm files as php all I need to do is to add the .htaccess file with the code provided as stated correct? I did this. Once again, does it matter whether I upload that file Binary or ASCII?
ASCII would be best since it's a text file. Also, it's dependent on your server allowing .htaccess files (and how much of them it will conform to).
Ok, I went ahead and posted the original PHP code onto a new website page hosted on a totally different server. I get the same results, there are no ads displaying. I did this double check to find out if the problem is with my hosting or with the way I am implementing the code. The web page that I did the second test on is www.lendinghandsmarketing.com