How do you "use the full path to the ad_network_311.php file."

Discussion in 'Co-op Advertising Network' started by Robert A. Kearse, Jul 24, 2005.

  1. #1
    Hi:

    I'm trying to get my site validated.

    The set up instructions have this note:

    "Note: If your files are in sub-directories, you may need to use the full path to the ad_network_311.php file."

    QUESTION:

    Where would I insert the full path to the ad_network_319.php file???

    Can you post exactly how it should look??

    This is what is showing on my website pages:


    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_311.php');
    echo $ad_network;


    Thanks for any help.

    Robert
     
    Robert A. Kearse, Jul 24, 2005 IP
  2. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #2
    
    include '/path/to/your/ad_network_311.php';
    
    PHP:
    that's what is meant by 'full path'. and you must replace /path/to/your/ with the actual path ofcourse.
     
    frankm, Jul 24, 2005 IP
  3. Robert A. Kearse

    Robert A. Kearse Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Frankm:

    Thanks for the guidance, but I still have a lot of questions.

    This is the full path:

    http://www.100freeworkathometools.com/ad_network_311.php

    EXACTLY what should the code I entered on my web pages
    look like after entry??

    Also, what do I have to do with this line of code??
    ini_set ("include_path", ini_get("include_path") . ':../:../../:../../../:../../../../');

    As you can see my technical knowledge is very limited.

    Thanks for your help.

    Robert
     
    Robert A. Kearse, Jul 24, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    No it's not... that is a URL, not a file path.
     
    digitalpoint, Jul 24, 2005 IP
  5. Robert A. Kearse

    Robert A. Kearse Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Shawn:

    So what exactly is a file path?? And how does it look when entered under the setup instructions.

    Robert
     
    Robert A. Kearse, Jul 25, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    It's going to be dependent on your server. As an example, the file path for it on this forum would be:

    /xserve1/sites/forums.digitalpoint.com/web/ad_network.php
     
    digitalpoint, Jul 25, 2005 IP
  7. Robert A. Kearse

    Robert A. Kearse Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi:

    The set up instructions have this note:

    "Note: If your files are in sub-directories, you may need to use the full path to the ad_network_311.php file."

    This is my domain:

    http://100FreeWorkAtHomeTools.com

    According to my host's help desk this is the full
    path to the ad network file:

    include('/home/freew/public_html/ad_network_311.php');

    This is the code that is pasted on my web pages:

    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_311.php');
    echo $ad_network;


    EXACTLY what should the immediately above be modified
    to look like when I include the "full path" to the ad network file??

    Thanks for your help.

    Robert
     
    Robert A. Kearse, Aug 14, 2005 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
    Swap the two include lines you have above.
     
    digitalpoint, Aug 14, 2005 IP
  9. Robert A. Kearse

    Robert A. Kearse Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_311.php');
    echo $ad_network;


    Shawn:

    I'm not sure exactly what to do, but here are the two
    modifications I tried:

    ini_set include ('ad_network_311.php'); . ':../:../../:../../../:../../../../');
    ("include_path", ini_get ("include_path")
    echo $ad_network;

    include ('ad_network_311.php');
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    echo $ad_network;


    Neither of these attempts resulted in the ads being shown.

    What Now????

    Robert
     
    Robert A. Kearse, Aug 17, 2005 IP