Not a programmer, ads not appearing.

Discussion in 'Co-op Advertising Network' started by fisher318, Dec 9, 2004.

  1. #1
    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?
     
    fisher318, Dec 9, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    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.
     
    digitalpoint, Dec 9, 2004 IP
  3. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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>
     
    chachi, Dec 9, 2004 IP
  4. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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?
     
    fisher318, Dec 9, 2004 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #5
    If you setup your server to parse .htm files as PHP, then you could do it without changing your file extensions.
     
    digitalpoint, Dec 9, 2004 IP
  6. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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?
     
    fisher318, Dec 9, 2004 IP
  7. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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?
     
    fisher318, Dec 9, 2004 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    Change the echo line to this:
    echo implode (' ', $ad_network);
    PHP:
     
    digitalpoint, Dec 9, 2004 IP
  9. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I changed it, but look what it produced:

    www.lendinghandsmortgage.com (bottom)
     
    fisher318, Dec 9, 2004 IP
  10. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #10
    I see a blank page.
     
    digitalpoint, Dec 9, 2004 IP
  11. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    check again please
     
    fisher318, Dec 9, 2004 IP
  12. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #12
    It's still not being evaluated as a PHP file. You can see the PHP code in the source.
     
    digitalpoint, Dec 9, 2004 IP
  13. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    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?
     
    fisher318, Dec 9, 2004 IP
  14. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #14
    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).
     
    digitalpoint, Dec 9, 2004 IP
  15. flawebworks

    flawebworks Tech Services

    Messages:
    991
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    78
    #15
    What exactly does this do:

    echo implode (' ', $ad_network);

    Inquiring minds want to know.
     
    flawebworks, Dec 9, 2004 IP
  16. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #16
    Outputs an array separated by a space.
     
    digitalpoint, Dec 9, 2004 IP
  17. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    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
     
    fisher318, Dec 9, 2004 IP
  18. fountainofyout@aol.com

    fountainofyout@aol.com Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #18
    Is there anyone out there who will set me up on the coop network for a fee?
     
    fountainofyout@aol.com, Dec 9, 2004 IP
  19. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #19
    PM me and I'll try it for free in return for some of your weight...
     
    T0PS3O, Dec 9, 2004 IP