Closed Thread
Results 1 to 4 of 4

Thread: Ad-Code in PHP Pages

  1. #1
    ghettoc401 is offline x10Hosting Member ghettoc401 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    33

    Ad-Code in PHP Pages

    I have an ad-enhanced package and i need to add the code to my php pages. The problem is that i have like 50 php pages(non-php nuke pages) and i have php nuke ( I have already added the adcode to phpnuke). I wanted to know if there was some way that i can make the adcode appear in all of the php pages without manually adding it to all of them. If worse comes to worse, then i will just add them manually.

    That brings me to my second help point, i searched and i never found an answer that works. How can i add the adcode to the php pages that i have? I tried adding <?php and ?> before and after the adcode.

    Thanks in advance for any help that you can give! ;)

  2. #2
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Ad-Code in PHP Pages

    One question. Are all of these PHP files just individual ones that you run by themselves, or do you include these files in one big file (i.e. "index.php" or similar)?
    -Chris Z
    Retired Account Manager


  3. #3
    ghettoc401 is offline x10Hosting Member ghettoc401 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    33

    Re: Ad-Code in PHP Pages

    not sure if i understand, but they are individual pages and there is a index.php. Maybe if i elaborate, it will be easier. One page might be eoclan.pcriot/stats/awards.php and another page might be eoclan.pcriot.com/stats/admin.php.

  4. #4
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: Ad-Code in PHP Pages

    The adcode shouldn't be in the PHP tags. If the page is PHP you want to escape the PHP tags and actually do this:
    ?>
    adcode here
    <?php

Closed Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. how can i convert Php pages and code into asp pages and code
    By n4tec in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 01-10-2009, 09:40 PM
  3. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM
  5. [PHP] Placing the Ads in PHP Pages
    By Chris in forum Tutorials
    Replies: 22
    Last Post: 06-04-2005, 11:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers