headers sent issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Platero

    #1

    headers sent issue

    Hi,
    I've a stupid question but...

    The code is the following:

    if(($role!='tut or')&&(array_ke y_exists('tutor _id',$_GET)))
    {
    $possible_ids = array(2,6,7,8,9 ,10);
    $t_id = $_GET['tutor_id'];

    if(in_array($t_ id, $possible_ids)) {

    $query="SELECT id_class FROM class WHERE
    id_user='".$_GE T['tutor_id']."'";

    $id_class=$db->get_field($que ry,id_class);

    include("print_ data.php");

    $formButtonLabe l = "Modifica";

    }

    --->else

    {

    //$my_echo = "hello";
    //echo $my_echo;

    //header('Locatio n: http://www.google.com' );
    //exit();
    }

    }




    What happens:

    if in the array there's what you have in $_GET, anything works.

    It's the else block that matters: :-)
    - if I ONLY print $my_echo, no problems;
    - if I comment $my_echo and I leave the header() uncommented, this
    command doesn't work (that is, the page does not redirect);

    What is happening?
    How can I solve this?

    I tried (in the else block) the headers_sent function too:

    if (headers_sent() ) {
    $my_echo = "sent";
    echo $mioeco;
    }

    and it seems headers are sent, but maybe before I try to redirect.
    Is there a way to "clean" the headers already sent??

    Thanks very much,
    Platero

  • Rik

    #2
    Re: headers sent issue

    Platero wrote:
    I tried (in the else block) the headers_sent function too:
    >
    if (headers_sent() ) {
    $my_echo = "sent";
    echo $mioeco;
    }
    >
    and it seems headers are sent, but maybe before I try to redirect.
    Is there a way to "clean" the headers already sent??
    No, once the headers are sent you're stuck with it. Remember: even a space
    before <?php will result in headers being sent.

    Headers must be sent before any output, whatever it is, wether it's
    generated from php or fram a static file.

    Grtz,
    --
    Rik Wasmus


    Comment

    • dawnerd

      #3
      Re: headers sent issue


      Platero wrote:
      Hi,
      I've a stupid question but...
      >
      The code is the following:
      >
      if(($role!='tut or')&&(array_ke y_exists('tutor _id',$_GET)))
      {
      $possible_ids = array(2,6,7,8,9 ,10);
      $t_id = $_GET['tutor_id'];
      >
      if(in_array($t_ id, $possible_ids)) {
      >
      $query="SELECT id_class FROM class WHERE
      id_user='".$_GE T['tutor_id']."'";
      >
      $id_class=$db->get_field($que ry,id_class);
      >
      include("print_ data.php");
      >
      $formButtonLabe l = "Modifica";
      >
      }
      >
      --->else
      >
      {
      >
      //$my_echo = "hello";
      //echo $my_echo;
      >
      //header('Locatio n: http://www.google.com' );
      //exit();
      }
      >
      }
      >
      >
      >
      >
      What happens:
      >
      if in the array there's what you have in $_GET, anything works.
      >
      It's the else block that matters: :-)
      - if I ONLY print $my_echo, no problems;
      - if I comment $my_echo and I leave the header() uncommented, this
      command doesn't work (that is, the page does not redirect);
      >
      What is happening?
      How can I solve this?
      >
      I tried (in the else block) the headers_sent function too:
      >
      if (headers_sent() ) {
      $my_echo = "sent";
      echo $mioeco;
      }
      >
      and it seems headers are sent, but maybe before I try to redirect.
      Is there a way to "clean" the headers already sent??
      >
      Thanks very much,
      Platero
      Use output buffering, should fix your problem.

      Comment

      • Jerry Stuckle

        #4
        Re: headers sent issue

        dawnerd wrote:
        Platero wrote:
        >
        >>Hi,
        >>I've a stupid question but...
        >>
        >>The code is the following:
        >>
        >>if(($role!='t utor')&&(array_ key_exists('tut or_id',$_GET)))
        > {
        > $possible_ids = array(2,6,7,8,9 ,10);
        > $t_id = $_GET['tutor_id'];
        >>
        > if(in_array($t_ id, $possible_ids)) {
        >>
        > $query="SELECT id_class FROM class WHERE
        >>id_user='".$_ GET['tutor_id']."'";
        >>
        > $id_class=$db->get_field($que ry,id_class);
        >>
        > include("print_ data.php");
        >>
        > $formButtonLabe l = "Modifica";
        >>
        > }
        >>
        > --->else
        >>
        > {
        >>
        > //$my_echo = "hello";
        > //echo $my_echo;
        >>
        > //header('Locatio n: http://www.google.com' );
        > //exit();
        > }
        >>
        > }
        >>
        >>
        >>
        >>
        >>What happens:
        >>
        >>if in the array there's what you have in $_GET, anything works.
        >>
        >>It's the else block that matters: :-)
        >>- if I ONLY print $my_echo, no problems;
        >>- if I comment $my_echo and I leave the header() uncommented, this
        >>command doesn't work (that is, the page does not redirect);
        >>
        >>What is happening?
        >>How can I solve this?
        >>
        >>I tried (in the else block) the headers_sent function too:
        >>
        >>if (headers_sent() ) {
        >> $my_echo = "sent";
        >> echo $mioeco;
        >> }
        >>
        >>and it seems headers are sent, but maybe before I try to redirect.
        >>Is there a way to "clean" the headers already sent??
        >>
        >>Thanks very much,
        >>Platero
        >
        >
        Use output buffering, should fix your problem.
        >
        Better to find and fix the problem than unnecessarily add overhead by
        buffering the output.

        Output buffering has its uses. But to use it to get around a problem in
        the code is not a good idea, IMHO.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • dawnerd

          #5
          Re: headers sent issue


          Jerry Stuckle wrote:
          dawnerd wrote:
          Platero wrote:
          >Hi,
          >I've a stupid question but...
          >
          >The code is the following:
          >
          >if(($role!='tu tor')&&(array_k ey_exists('tuto r_id',$_GET)))
          {
          $possible_ids = array(2,6,7,8,9 ,10);
          $t_id = $_GET['tutor_id'];
          >
          if(in_array($t_ id, $possible_ids)) {
          >
          $query="SELECT id_class FROM class WHERE
          >id_user='".$_G ET['tutor_id']."'";
          >
          $id_class=$db->get_field($que ry,id_class);
          >
          include("print_ data.php");
          >
          $formButtonLabe l = "Modifica";
          >
          }
          >
          --->else
          >
          {
          >
          //$my_echo = "hello";
          //echo $my_echo;
          >
          //header('Locatio n: http://www.google.com' );
          //exit();
          }
          >
          }
          >
          >
          >
          >
          >What happens:
          >
          >if in the array there's what you have in $_GET, anything works.
          >
          >It's the else block that matters: :-)
          >- if I ONLY print $my_echo, no problems;
          >- if I comment $my_echo and I leave the header() uncommented, this
          >command doesn't work (that is, the page does not redirect);
          >
          >What is happening?
          >How can I solve this?
          >
          >I tried (in the else block) the headers_sent function too:
          >
          >if (headers_sent() ) {
          > $my_echo = "sent";
          > echo $mioeco;
          > }
          >
          >and it seems headers are sent, but maybe before I try to redirect.
          >Is there a way to "clean" the headers already sent??
          >
          >Thanks very much,
          >Platero

          Use output buffering, should fix your problem.
          >
          Better to find and fix the problem than unnecessarily add overhead by
          buffering the output.
          >
          Output buffering has its uses. But to use it to get around a problem in
          the code is not a good idea, IMHO.
          >
          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===
          I couldn't agree with you more. I find it always better to do all of
          the dirty work before anything is outputted. IMO it's bad practice to
          use PHP in the middle of html, unless it's used to output text.

          Instead of say checking variables for errors and redirecting to a new
          page in the middle of a page, do it before any html will even be
          outputted, that way you are safe to set headers and the work.

          Comment

          • Platero

            #6
            Re: headers sent issue


            Thanks very much.
            I red all the thread and I solved :-)

            Platero

            Comment

            • Mladen Gogala

              #7
              Re: headers sent issue

              On Fri, 11 Aug 2006 23:26:44 -0400, Jerry Stuckle wrote:
              Output buffering has its uses. But to use it to get around a problem in
              the code is not a good idea, IMHO.
              The whole business with headers is unnecessarily restrictive and real pain
              in the neck or lower. Newer versions of Apache are more and more tolerant,
              as they should be. If ob_start will solve my problem, I'll use it in a
              heartbeat. It is a solution in 99% of the cases. For the remaining 1%,
              it's still a pain.

              --
              大红鹰娱乐平台采用顶级加密技术,确保用户数据与交易的安全无虞,让玩家能够放心畅玩。


              Comment

              • Jerry Stuckle

                #8
                Re: headers sent issue

                Mladen Gogala wrote:
                On Fri, 11 Aug 2006 23:26:44 -0400, Jerry Stuckle wrote:
                >
                >
                >>Output buffering has its uses. But to use it to get around a problem in
                >>the code is not a good idea, IMHO.
                >
                >
                The whole business with headers is unnecessarily restrictive and real pain
                in the neck or lower. Newer versions of Apache are more and more tolerant,
                as they should be. If ob_start will solve my problem, I'll use it in a
                heartbeat. It is a solution in 99% of the cases. For the remaining 1%,
                it's still a pain.
                >
                This not not an Apache restriction. It's one of the HTTP protocol, and
                there isn't anything Apache can do to "fix" it.

                And I understand. You're rather go for a "quick fix" than find and fix
                the real problem.

                Glad you're not on my team.

                --
                =============== ===
                Remove the "x" from my email address
                Jerry Stuckle
                JDS Computer Training Corp.
                jstucklex@attgl obal.net
                =============== ===

                Comment

                • Mladen Gogala

                  #9
                  Re: headers sent issue

                  On Sat, 12 Aug 2006 09:34:36 -0400, Jerry Stuckle wrote:
                  This not not an Apache restriction. It's one of the HTTP protocol, and
                  there isn't anything Apache can do to "fix" it.
                  >
                  I don't know, but I do see less problems with Apache 2.0.54 then with
                  Apache 1.0.3x. I haven't quantified anything
                  And I understand. You're rather go for a "quick fix" than find and fix
                  the real problem.
                  That does fix the real problem: unnecessary painful issue with "headers
                  already sent". If all that I want to do is to issue header() function and
                  redirect browser onto another page, then I don't really care about the
                  "real problem".
                  >
                  Glad you're not on my team.
                  No need to get personal here, but since you've put it that way, I too am
                  glad that I am not on your team.


                  --
                  大红鹰娱乐平台采用顶级加密技术,确保用户数据与交易的安全无虞,让玩家能够放心畅玩。


                  Comment

                  • Jerry Stuckle

                    #10
                    Re: headers sent issue

                    Mladen Gogala wrote:
                    On Sat, 12 Aug 2006 09:34:36 -0400, Jerry Stuckle wrote:
                    >
                    >
                    >>This not not an Apache restriction. It's one of the HTTP protocol, and
                    >>there isn't anything Apache can do to "fix" it.
                    >>
                    >
                    I don't know, but I do see less problems with Apache 2.0.54 then with
                    Apache 1.0.3x. I haven't quantified anything
                    >
                    >
                    >>And I understand. You're rather go for a "quick fix" than find and fix
                    >>the real problem.
                    >
                    >
                    That does fix the real problem: unnecessary painful issue with "headers
                    already sent". If all that I want to do is to issue header() function and
                    redirect browser onto another page, then I don't really care about the
                    "real problem".
                    >
                    Nope. The real problem is why you're sending data in the first place.
                    There may be a valid reason. However, just using ob_start() just hides
                    the real problem.
                    >
                    >>Glad you're not on my team.
                    >
                    >
                    No need to get personal here, but since you've put it that way, I too am
                    glad that I am not on your team.
                    >
                    >
                    Yep, you wouldn't get away with that on my team. Like anything else -
                    you should have a reason for using ob_start(). And just using it to
                    hide the fact you've sent out something ahead of time - but have no idea
                    what you've sent - is not a valid reason.

                    Another case of a quick fix instead of finding the real problem. Sooner
                    or later it will come back to bite you.



                    --
                    =============== ===
                    Remove the "x" from my email address
                    Jerry Stuckle
                    JDS Computer Training Corp.
                    jstucklex@attgl obal.net
                    =============== ===

                    Comment

                    • Mladen Gogala

                      #11
                      Re: headers sent issue

                      On Sun, 13 Aug 2006 15:45:51 -0400, Jerry Stuckle wrote:
                      Sooner
                      or later it will come back to bite you.
                      Nope. Sooner or later they'll fix PHP to start doing output buffering by
                      default. I've had pages working without a hitch on Linux or Solaris and
                      reporting "headers already sent" on Windows 2000. Making every programmer
                      aware of intricacies of a convoluted and unnecessarily restrictive
                      protocol is not a solution. Things must be doable through normal
                      programming, without counting bytes. Your "solution" is like dieting by
                      maniacally counting calories - it seldomly works and usually creates more
                      problems then it solves. Calling header() is not an unusual request, it's
                      like calling a subroutine to jump to another page. I couldn't care less if
                      headers are already sent, I just want another page, period.
                      I'm a DBA, programming is not my primary business. I need to get things
                      done, lots of them and quickly. Things must work, but nobody will come
                      back complaining to me because of few KB of address space more consumed by
                      the httpd processes. I use PHP because Perl CGI module is very complex
                      and the very nature of Perl executing things like `ls /tmp` before the
                      variable substitution is made. I'm still using Perl for the CLI stuff, but
                      PHP is my primary web interface. In other words, I started using PHP
                      because Perl was too complex and it took me too long to develop and
                      bulletproof my scripts. Following headers religiously and studying trifle
                      details like that would defeat the purpose. The purpose, may I remind you,
                      is to develop web applications quickly and not to practice programming
                      religion. Programming religion is, just as is the case with any other
                      religion, a guidance and a moral compass when consumed in small doses, but
                      can also be debilitating, if followed fanatically and to the letter.

                      --
                      大红鹰娱乐平台采用顶级加密技术,确保用户数据与交易的安全无虞,让玩家能够放心畅玩。


                      Comment

                      • Mladen Gogala

                        #12
                        Re: headers sent issue

                        On Fri, 11 Aug 2006 23:41:46 -0700, dawnerd wrote:
                        IMO it's bad practice to
                        use PHP in the middle of html, unless it's used to output text.
                        It was written to be used that way. I don't see any reasons for such
                        puritanic attitude.

                        --
                        大红鹰娱乐平台采用顶级加密技术,确保用户数据与交易的安全无虞,让玩家能够放心畅玩。


                        Comment

                        • Jerry Stuckle

                          #13
                          Re: headers sent issue

                          Mladen Gogala wrote:
                          On Sun, 13 Aug 2006 15:45:51 -0400, Jerry Stuckle wrote:
                          >
                          >
                          >>Sooner
                          >>or later it will come back to bite you.
                          >
                          >
                          Nope. Sooner or later they'll fix PHP to start doing output buffering by
                          default.
                          PHP isn't broken. It shouldn't have output buffering by default - no
                          other language does, for instance. And doing so would break other
                          applications which depend on immediate output.

                          And BTW - it doesn't even have to be PHP which causes the output to be
                          sent. A space or new line character before the first "<?php" is enough
                          to do it. And PHP isn't even involved.
                          I've had pages working without a hitch on Linux or Solaris and
                          reporting "headers already sent" on Windows 2000.
                          I rest my case. If they were coded properly you wouldn't have that problem.
                          Making every programmer
                          aware of intricacies of a convoluted and unnecessarily restrictive
                          protocol is not a solution.
                          A good programmer's job includes an understanding of the environment
                          under which he's working.
                          Things must be doable through normal
                          programming, without counting bytes.
                          Yep. Zero bytes output, no headers sent. 1 byte output, headers sent.
                          Your "solution" is like dieting by
                          maniacally counting calories - it seldomly works and usually creates more
                          problems then it solves.
                          Nope. It solves ALL the problems. And it doesn't artificially hide the
                          problems cause by poor coding practices.
                          Calling header() is not an unusual request, it's
                          like calling a subroutine to jump to another page.
                          Agreed.
                          I couldn't care less if
                          headers are already sent. I just want another page, period.
                          If you were a real programmer, you WOULD care about whether the headers
                          have been sent or not.
                          I'm a DBA, programming is not my primary business.
                          That explains a lot. Might I suggest you stick with DBA work and let
                          programmers do the programming?
                          I need to get things
                          done, lots of them and quickly. Things must work, but nobody will come
                          back complaining to me because of few KB of address space more consumed by
                          the httpd processes.
                          Fine. I get things done quickly, also. And they work - correctly.
                          I use PHP because Perl CGI module is very complex
                          and the very nature of Perl executing things like `ls /tmp` before the
                          variable substitution is made.
                          And Perl has the same "problem" as you call it, as PHP. Any output, and
                          headers have been sent.
                          I'm still using Perl for the CLI stuff, but
                          PHP is my primary web interface. In other words, I started using PHP
                          because Perl was too complex and it took me too long to develop and
                          bulletproof my scripts.
                          OK, PHP is easier. But that doesn't mean sloppy programming is good.
                          Following headers religiously and studying trifle
                          details like that would defeat the purpose. The purpose, may I remind you,
                          is to develop web applications quickly and not to practice programming
                          religion.
                          Not at all a programming religion. It's an understanding of the
                          environment under which you're working, and the actions and limitations
                          of that environment.
                          Programming religion is, just as is the case with any other
                          religion, a guidance and a moral compass when consumed in small doses, but
                          can also be debilitating, if followed fanatically and to the letter.
                          >
                          And so can stupid and asinine programming practices.

                          I hope you don't have such a cavalier attitude towards your DBA work as
                          you do programming. If so, I pity your employer.



                          --
                          =============== ===
                          Remove the "x" from my email address
                          Jerry Stuckle
                          JDS Computer Training Corp.
                          jstucklex@attgl obal.net
                          =============== ===

                          Comment

                          • Mladen Gogala

                            #14
                            Re: headers sent issue

                            On Sun, 13 Aug 2006 20:38:11 -0400, Jerry Stuckle wrote:
                            >
                            PHP isn't broken. It shouldn't have output buffering by default - no
                            other language does, for instance. And doing so would break other
                            applications which depend on immediate output.
                            Actually, all Unix and Unix-like systems have both input and output
                            buffering turned on by default. That's what system buffers are all about.
                            If you want to bypass them, you have to do something called "direct I/O".
                            Buffering on Unix-like systems is a fact of life and it isn't language
                            dependent.
                            >
                            And BTW - it doesn't even have to be PHP which causes the output to be
                            sent. A space or new line character before the first "<?php" is enough
                            to do it. And PHP isn't even involved.
                            >
                            >I've had pages working without a hitch on Linux or Solaris and
                            >reporting "headers already sent" on Windows 2000.
                            >
                            I rest my case. If they were coded properly you wouldn't have that problem.
                            Call to ob_start() resolved the issue extremely quickly. This also breaks
                            your argument, for if it was a protocol problem, it would be a protocol
                            problem on both systems. Network protocols are, by definition, independent
                            of the operating system.

                            >
                            >Your "solution" is like dieting by
                            >maniacally counting calories - it seldomly works and usually creates more
                            >problems then it solves.
                            >
                            Nope. It solves ALL the problems. And it doesn't artificially hide the
                            problems cause by poor coding practices.
                            With the exception of the ease of programming and the speed of getting
                            things done. In addition to that, if you call something "poor coding
                            practices", you should explain why do you think that and what evil can
                            come out of following those "poor programming practices".
                            >
                            >Calling header() is not an unusual request, it's
                            >like calling a subroutine to jump to another page.
                            >
                            Agreed.
                            >
                            >I couldn't care less if
                            >headers are already sent. I just want another page, period.
                            >
                            If you were a real programmer, you WOULD care about whether the headers
                            have been sent or not.
                            And why exactly would I care about that? You didn't come up with any
                            arguments so far, only with unprovoked personal insults.

                            >
                            >I'm a DBA, programming is not my primary business.
                            >
                            That explains a lot. Might I suggest you stick with DBA work and let
                            programmers do the programming?
                            Might I suggest you to refrain from unsolicited career advices? The
                            difference among us is that you think that there is something to be gained
                            by catching that fateful space or newline before "<?php" and I don't. I am
                            not at all opposed to alleviating the pain by inserting <?php ob_start()?>
                            as the very first line of my php scripts and forget about headers. I
                            haven't had the case of that biting me later and you haven't explained how
                            will that byte me later. You did get quite personal which discourages me from
                            continuing the debate. My scripts and programs do work, are written quite
                            clearly and are quite easy to maintain. I'm maintaining them for years.
                            This is the point at which I will shrug my shoulders, direct you to some
                            "real programmers" jokes at:


                            and terminate it gracefully with EOD. You may believe that Allah told you
                            how to program but I subscribe to the other gods. May the farce be with
                            you, my friend.
                            .....
                            >And so can stupid and asinine programming practices.
                            I hope you don't have such a cavalier attitude towards your DBA work as
                            you do programming. If so, I pity your employer."
                            You must be a joy to work with. Your employer probably fully deserves you,
                            just for giving you "your team".

                            --
                            大红鹰娱乐平台采用顶级加密技术,确保用户数据与交易的安全无虞,让玩家能够放心畅玩。


                            Comment

                            • Jerry Stuckle

                              #15
                              Re: headers sent issue

                              Mladen Gogala wrote:
                              On Sun, 13 Aug 2006 20:38:11 -0400, Jerry Stuckle wrote:
                              >
                              >
                              >>PHP isn't broken. It shouldn't have output buffering by default - no
                              >>other language does, for instance. And doing so would break other
                              >>application s which depend on immediate output.
                              >
                              >
                              Actually, all Unix and Unix-like systems have both input and output
                              buffering turned on by default. That's what system buffers are all about.
                              If you want to bypass them, you have to do something called "direct I/O".
                              Buffering on Unix-like systems is a fact of life and it isn't language
                              dependent.
                              >
                              But PHp is not a system. It's a programming language. Apache still
                              buffers the output. And as soon as ANY output is sent - whether from
                              PHP, PERL, HTML or whatever - Apache sends the headers.
                              >
                              >>And BTW - it doesn't even have to be PHP which causes the output to be
                              >>sent. A space or new line character before the first "<?php" is enough
                              >>to do it. And PHP isn't even involved.
                              >>
                              >>
                              >>>I've had pages working without a hitch on Linux or Solaris and
                              >>>reporting "headers already sent" on Windows 2000.
                              >>
                              >>I rest my case. If they were coded properly you wouldn't have that problem.
                              >
                              >
                              Call to ob_start() resolved the issue extremely quickly. This also breaks
                              your argument, for if it was a protocol problem, it would be a protocol
                              problem on both systems. Network protocols are, by definition, independent
                              of the operating system.
                              >
                              Sure, You're getting around the real problem.

                              And it doesn't break my argument at all. ob_start() just tells PHP to
                              do some buffering. It doesn't fix your problem at all. Just bypasses
                              it - for now.
                              >
                              >
                              >>>Your "solution" is like dieting by
                              >>>maniacally counting calories - it seldomly works and usually creates more
                              >>>problems then it solves.
                              >>
                              >>Nope. It solves ALL the problems. And it doesn't artificially hide the
                              >>problems cause by poor coding practices.
                              >
                              >
                              With the exception of the ease of programming and the speed of getting
                              things done. In addition to that, if you call something "poor coding
                              practices", you should explain why do you think that and what evil can
                              come out of following those "poor programming practices".
                              >
                              And if you don't have the time (or inclination) to do it right - when
                              will you have the time (or inclination) to do it over?

                              And I tried to explain to you. But you're obviously not willing to
                              understand.
                              >
                              >>>Calling header() is not an unusual request, it's
                              >>>like calling a subroutine to jump to another page.
                              >>
                              >>Agreed.
                              >>
                              >>
                              >>>I couldn't care less if
                              >>>headers are already sent. I just want another page, period.
                              >>
                              >>If you were a real programmer, you WOULD care about whether the headers
                              >>have been sent or not.
                              >
                              >
                              And why exactly would I care about that? You didn't come up with any
                              arguments so far, only with unprovoked personal insults.
                              >
                              I've already tried explaining it to you. You're not fixing the problem.
                              You're bypassing it. Sooner or later you're going to run into
                              problems - like when you're on a different OS, maybe a different version
                              of PHP which buffers differently, or even expect the headers to have
                              already been sent when you're doing something in your code.

                              All kinds of things can happen. And it's not at all difficult to fix
                              the real problem.
                              >
                              >
                              >>>I'm a DBA, programming is not my primary business.
                              >>
                              >>That explains a lot. Might I suggest you stick with DBA work and let
                              >>programmers do the programming?
                              >
                              >
                              Might I suggest you to refrain from unsolicited career advices? The
                              difference among us is that you think that there is something to be gained
                              by catching that fateful space or newline before "<?php" and I don't. I am
                              not at all opposed to alleviating the pain by inserting <?php ob_start()?>
                              as the very first line of my php scripts and forget about headers. I
                              haven't had the case of that biting me later and you haven't explained how
                              will that byte me later. You did get quite personal which discourages me from
                              continuing the debate. My scripts and programs do work, are written quite
                              clearly and are quite easy to maintain. I'm maintaining them for years.
                              This is the point at which I will shrug my shoulders, direct you to some
                              "real programmers" jokes at:

                              >
                              Nope, you post in this forum and you might get some advice - whether you
                              want it or not.

                              And you're the real joke here. I'm glad real programmers find the
                              problem - instead of making a "quick fix". The quick fix never is - in
                              the long run.
                              and terminate it gracefully with EOD. You may believe that Allah told you
                              how to program but I subscribe to the other gods. May the farce be with
                              you, my friend.
                              ....
                              >
                              >
                              >>And so can stupid and asinine programming practices.
                              >>I hope you don't have such a cavalier attitude towards your DBA work as
                              >>you do programming. If so, I pity your employer."
                              >
                              >
                              You must be a joy to work with. Your employer probably fully deserves you,
                              just for giving you "your team".
                              >
                              Actually, I'm a consultant. I have my own business. And quite in
                              demand, also. Enough that I regularly turn down work.

                              But that's because my customers know their projects are done on time,
                              within budget - and right.


                              --
                              =============== ===
                              Remove the "x" from my email address
                              Jerry Stuckle
                              JDS Computer Training Corp.
                              jstucklex@attgl obal.net
                              =============== ===

                              Comment

                              Working...