1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Automatic or Easy way to install PHP code

Discussion in 'Co-op Advertising Network' started by bloodwrath, Dec 24, 2004.

  1. #1
    Hi ALL
    I have over 491 .html & some PHP pages on my site.
    IT will take me FOREVER to add this code to all manually

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?>

    Is their a tool to add this automatically
    or it will take me weeks to get my account validated??
    PLZ help :eek:
     
    bloodwrath, Dec 24, 2004 IP
  2. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #2
    if you keep your site on a windows box, ultraedit has a great search and replace in files function. Shareware, but really good shareware. Feature works in the 30 day trial. On a unix box, you can run an sed script.

    Or...

    If you run apache, you can use a little server side function to get it done.

    Search for mod_rewrite in this forum. Another keyword would be passthru.php I believe.
     
    nevetS, Dec 25, 2004 IP
  3. media143

    media143 Member

    Messages:
    238
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #3
    I have experience in PHP but can you explain your problem little more. I could not get your actual problem. Thanks
     
    media143, May 8, 2010 IP
  4. aeroz1

    aeroz1 Active Member

    Messages:
    492
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Elefante Installer is a unique platform, with which you can easily install more than 40 popular PHP scripts arranged in the following categories: Wiki, Blog, Forum, CMS (content management system), E-commerce, Calendar, Photo Gallery, Guestbook and Project Management, among others.
     
    aeroz1, Jun 8, 2010 IP