Thread: Header??

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    Hi, i am trying to put an header function into html, but it doesn't work. Am I put the function wrong or what? Below is my script...it that ok??


    <? header("Cache-Control: no-cache, must-revalidate");?>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    That should work fine, as long as you have no whitespace (or anything else) before the <?

Similar Threads

  1. mail(), header, character set not recognized
    By mr_fitz in forum PHP Development
    Replies: 0
    Last Post: December 11th, 2003, 10:25 AM
  2. Does _msize() always return EXACT size of malloc'ed block?
    By Jason Doucette in forum C Programming
    Replies: 10
    Last Post: November 29th, 2003, 12:24 AM
  3. Adding a page header
    By madwax in forum HTML Programming
    Replies: 0
    Last Post: October 14th, 2003, 01:42 PM
  4. problem with header() inside Apache SSI !! Help!
    By wzhaoca in forum PHP Development
    Replies: 0
    Last Post: August 10th, 2003, 12:22 PM

IMN logo majestic logo threadwatch logo seochat tools logo