PHP Guys?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brizzad
    holla
    • Jul 2003
    • 11769

    #1

    PHP Guys?

    I was using a script whose order.php file was just a basic order form with no design.. so I wrote a template in html, and put the first part before the <?php and put the last part of the template after the ?> so that the order form looks just like my site..

    Code:
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/**/public_html/ipanel/order/index.php:13) in /home/**/public_html/ipanel/order/index.php on line 66
    Here's line 13:
    Code:
    	  <td valign="top" width="766" height="650">
    Here's line 66:
    Code:
    session_start();
    thanks.

    edit: i've got $5 in my paypal if whoever helps me wants it for a hamburger or something. ill brb after dinner
    Last edited by brizzad; 01-03-2006, 04:59 PM.
  • Jimmy C
    Registered User
    • Nov 2005
    • 22

    #2
    You can't send headers once they have already been sent. Any HTML output like td or whatever starts headers, so you can't start the session after that (startign the session sends headers)

    Cheers!

    Comment

    • brizzad
      holla
      • Jul 2003
      • 11769

      #3
      Originally posted by Jimmy C
      You can't send headers once they have already been sent. Any HTML output like td or whatever starts headers, so you can't start the session after that (startign the session sends headers)

      Cheers!
      can I start the session before the td somehow?

      Comment

      • Jimmy C
        Registered User
        • Nov 2005
        • 22

        #4
        Just put the <?php session_start(); at the very beginning of the file with no whitespace or anything sent to the browser first.

        Comment

        • brizzad
          holla
          • Jul 2003
          • 11769

          #5
          I did that and on line 2 when the html kicks in, it errors and says unexpected '<'

          Thanks for at least trying, Jimmy, even though we're not getting anywhere

          Comment

          • brizzad
            holla
            • Jul 2003
            • 11769

            #6
            I'll just seperate the html into a header file and a footer file and php include it in there

            Comment

            • Doc911
              Confirmed User
              • Feb 2004
              • 3695

              #7
              I'm still laughing at the 5$ part


              For PHP/MySQL scripts ICQ 161480555 or email [email protected]

              Comment

              • nolaman
                Confirmed User
                • Mar 2004
                • 1001

                #8
                try
                <?PHP
                ob_start() ;
                ?>

                at very top of page
                PHP Programmer ICQ 215-504-788

                Comment

                • V_RocKs
                  Damn Right I Kiss Ass!
                  • Nov 2003
                  • 32449

                  #9
                  You didn't close the php code.. Jimmy was right, now you need ?>

                  Comment

                  • woj
                    <&(©¿©)&>
                    • Jul 2002
                    • 47882

                    #10
                    icq: 33375924 if you still need a hand with this...
                    Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                    Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                    Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                    Comment

                    Working...