Results 1 to 2 of 2

Thread: How to add ad rotator php script to phproxy proxified pages

  1. #1
    passonme is offline Unknown Net Builder
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How to add ad rotator php script to phproxy proxified pages

    hi,

    I need to add this php script to the phproxy proxified pages. Currently i am using 2 adbrite 468x60 banners below the url form. I need to replace one adbrite code with this custom php ad rotator script.

    ad_rotator.php
    Code:
    <?php
    
    $fcontents = join ('', file ('banner_ads.txt'));
    $s_con = split("~",$fcontents);
    
    $banner_no = rand(0,(count($s_con)-1));
    echo $s_con[$banner_no];
    ?>

    banner_ads.txt
    Code:
    <a href="http://www.qksrv.net/click-498294-10346" target="_top" >
    <img src="http://www.qksrv.net/image-498294-10346" width="468" height="60" alt="Click here for Commission Junction" border="0"></a>
    ~
    <a href="http://www.qksrv.net/click-498294-896771" target="_top" >
    <img src="http://www.qksrv.net/image-498294-896771" width="468" height="60" alt="null" border="0"></a>
    ~
    <a href="http://www.qksrv.net/click-498294-541523" target="_top" >
    <img src="http://www.qksrv.net/image-498294-541523" width="468" height="60" alt="Dotster $14.95 Domain Name Registration" border="0"></a>
    I tried using the
    Code:
    include 'ad_rotator.php';
    as directed by the author, on doing so the site goes blank and to restore i have to remove this code.

    It is clear that there is php prasing error. how do i resolve this.

  2. #2
    Aquarezz's Avatar
    Aquarezz is offline Master Net Builder
    Join Date
    Dec 2008
    Location
    Belgium
    Posts
    3,851
    Blog Entries
    4
    Thanks
    683
    Thanked 591 Times in 463 Posts
    Did you place it between the <br /><hr /> tags?
    |Nico Lawsons

Similar Threads

  1. Any good ads for proxified pages?
    By Greyhound in forum Monetizing
    Replies: 17
    Last Post: 21 November, 2010, 12:08 PM
  2. Tutorial: Edit proxified form (phproxy)
    By ruben in forum Web Proxies
    Replies: 0
    Last Post: 4 October, 2009, 16:33 PM
  3. Ads on phproxy proxified pages.
    By Stylosa in forum Web Proxies
    Replies: 18
    Last Post: 18 September, 2009, 06:02 AM
  4. Any good CPM ads for proxified pages?
    By Greyhound in forum Web Proxies
    Replies: 25
    Last Post: 21 July, 2009, 08:54 AM
  5. CPM rate on proxified pages
    By nux in forum Web Proxies
    Replies: 7
    Last Post: 14 March, 2009, 01:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •