+ Reply to Thread
Results 1 to 7 of 7

Thread: Text Based Ads on static page

  1. #1
    zijo1 is offline x10Hosting Member zijo1 is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    1

    Text Based Ads on static page

    Is it somehow possible to put Text Based Ads on every .html page using some .php script.
    I have around 1000 .html pages and it's a big job to put Add on every page.

    I have tried this bat without success.

    1. I have created .htaccess file and put in it next lines:
    AddHandler headered .htm
    AddHandler headered .html
    Action headered header.php

    2. I have uploaded files header.html and footer.html with Text Based Ads code

    3. I have uploaded header.php file
    code:
    <?php
    $header = "header.html";
    $footer = "footer.html";

    $file = $_SERVER["SCRIPT_FILENAME"];
    readfile($header);
    readfile($file);
    readfile($footer);
    ?>

    Now I'm getting error:
    Bad Request

    Your browser sent a request that this server could not understand. Invalid URI in request GET / HTTP/1.1

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



    Any help?
    Last edited by zijo1; 11-23-2007 at 08:47 AM.

  2. #2
    Archkronos's Avatar
    Archkronos is offline x10 Lieutenant Archkronos is an unknown quantity at this point
    Join Date
    Jul 2007
    Location
    The Underworld (UK)
    Posts
    257

    Re: Text Based Ads on static page

    As much as I hate them, you might want to use something like a frameset.

  3. #3
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Text Based Ads on static page

    Or just a regular expression capable editor (like PowerGrep for windows or plain old sed) to replace all the tiles

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  4. #4
    jensen's Avatar
    jensen is offline x10 Lieutenant jensen is an unknown quantity at this point
    Join Date
    Nov 2005
    Location
    At my desk
    Posts
    438

    Re: Text Based Ads on static page

    wow you've 1000 pages already and each are static pages? You could use some CMS to manage them. How do you keep the menu's updated each time you add more stuff?
    "For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth" Romans 1:16

  5. #5
    Coonz is offline x10 Sophmore Coonz is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    132

    Re: Text Based Ads on static page

    Just use include
    PHP Code:
    <?php
    include("header.html");
    ?>

  6. #6
    GamingX's Avatar
    GamingX is offline Executive Team GamingX is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    Bangalore, India
    Posts
    6,353

    Re: Text Based Ads on static page

    You don't need ads for static plan.
    Syed
    Executive Team
    www.x10hosting.com

    Phone #: 1-888-X10-9668 -> Ext: 709

  7. #7
    jensen's Avatar
    jensen is offline x10 Lieutenant jensen is an unknown quantity at this point
    Join Date
    Nov 2005
    Location
    At my desk
    Posts
    438

    Re: Text Based Ads on static page

    It's not about static plan. It's about a static page.

    The php code for include still require one to put that code on 1000 pages.

    The iframes or frameset might be a simple way to get the ads up on every page. Some hosting servers add the adds automatically to every page.
    "For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth" Romans 1:16

+ Reply to Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. Replies: 1
    Last Post: 11-05-2007, 06:07 PM
  3. Urgent help please!
    By retro-bliss in forum Free Hosting
    Replies: 2
    Last Post: 10-25-2007, 03:24 PM
  4. Im gonna make a PHP text based game
    By Xenon Design in forum Off Topic
    Replies: 25
    Last Post: 10-19-2006, 05:44 AM

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