More of a html than adsense question so ill post here.

Discussion in 'HTML & Website Design' started by crigurfingur, Feb 5, 2009.

  1. #1
    Is there any way to have a code like this in all my web pages

    <link media="screen" type="text/css" href="style.css" rel="stylesheet"

    but instead of it referring to my css style sheet it goes to a gif banner or adsense or whatever. Kind of like digitalpoint has on top of there page in the right.
     
    crigurfingur, Feb 5, 2009 IP
  2. handshakes

    handshakes Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    So you want a portion of your page to appear on every page, but have one source so that you can easily change it on all pages by changing it once?
     
    handshakes, Feb 5, 2009 IP
  3. crigurfingur

    crigurfingur Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes i guess that's what im trying to explain.
     
    crigurfingur, Feb 5, 2009 IP
  4. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #4
    If you use php you can make a header.php file where to put your html/adsense code.
    In all pages you will need just to include the header.php file.
    If you use just html I think you will have to add manually the code to all pages.
    There is a javascript way too.
     
    ExtremeData, Feb 5, 2009 IP
  5. handshakes

    handshakes Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That's what I was going to suggest. Try googling it. About.com has a good tutorial.
     
    handshakes, Feb 5, 2009 IP
  6. crigurfingur

    crigurfingur Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I got this error on my page where I place the php code after I tryed it out, im guessing it has something to do with permission with the server seeing how it says "URL file-access is disabled in the server configuration"

    Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/a8853535/public_html/index.html on line 65
    
    Free Web Hosting
    
    PHP Error Message
    
    Warning: include(http://animespot.co.cc/adsense/rightad.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/a8853535/public_html/index.html on line 65
    
    Free Web Hosting
    
    PHP Error Message
    
    Warning: include() [function.include]: Failed opening 'http://animespot.co.cc/adsense/rightad.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a8853535/public_html/index.html on line 65
    
    Code (markup):
    any way to fix this without giving people access to muck up my sever.
     
    crigurfingur, Feb 5, 2009 IP
  7. handshakes

    handshakes Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Who is your hosting provider? Is you use free web hosting, chances are they don't offer support for php.
     
    handshakes, Feb 5, 2009 IP
  8. crigurfingur

    crigurfingur Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    never mind I found out by moving some things around that the php was directed wrongly.
     
    crigurfingur, Feb 5, 2009 IP
  9. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #9
    How you have included the file ? With the complete URL or with path(ex: script/header.php or complete url: http://....../script/header.php) ?
    Also make a php file, write phpinfo(); and let us know what content provide this file(maybe some functions are disabled).
     
    ExtremeData, Feb 5, 2009 IP