session_start not first in file?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default session_start not first in file?

    Hi,
    I've inherited a working php website, and intially just want to get it working on my intranet
    (apache 1.x).

    However I have to modify the pages to move the call to session_start to the first line before any
    HTML is output, as is recommened in the PHP help files. BUT HOW COME it's WORKING on the LIVE
    website?


    --
    zzapper (vim, cygwin, wiki & zsh)
    vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
    [url]http://www.rayninfo.co.uk/tips/[/url] vim, zsh & life tips
    zzapper Guest

  2. Similar Questions and Discussions

    1. Help with session_start()
      Hi. I was tring to start a session my web page and tried using the session_start(). However i keep gettin the warning: Warning: session_start()...
    2. session_start problem...
      Hi. I'm very new to PHP so this may be a dumb question, but I'm stuck. I have just compiled and installed the latest and the greatest versions of...
    3. #17146 [Com]: session_start don't create sess_* file
      ID: 17146 Comment by: nospam at nospam dot com Reported By: smurf at volny dot cz Status: Closed Bug Type: ...
    4. session_start()
      Ian.H wrote: Just one clarification for the original poster, as I think this still might be semi-unclear to him. (Had he understood the manual...
    5. session_start() problem
      session_start(); $_SESSION++; print 'You have visited here '.$_SESSION.' times.'; returned: Warning: session_start() :...
  3. #2

    Default Re: session_start not first in file?

    somewho the author of the site had the php script to hold of on sending
    headers. and cached the html output untill a later time ???


    "zzapper" <david@tvisnospam.co.uk> wrote in message
    news:dqqcn0tntcgogjvqh1cdkagkhrnfo5dsgm@4ax.com...
    > Hi,
    > I've inherited a working php website, and intially just want to get it
    > working on my intranet
    > (apache 1.x).
    >
    > However I have to modify the pages to move the call to session_start to
    > the first line before any
    > HTML is output, as is recommened in the PHP help files. BUT HOW COME it's
    > WORKING on the LIVE
    > website?
    >
    >
    > --
    > zzapper (vim, cygwin, wiki & zsh)
    > vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
    > [url]http://www.rayninfo.co.uk/tips/[/url] vim, zsh & life tips

    Ninjaboy Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139