PHP compiler.

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

    PHP compiler.

    Hi group.
    I hould like to write my code with a compiler instead of a text editor.
    What compilers do you advice me?
    I hould prefer compiler to run on Linux, but you can refer to windows'
    compilers to.

    I hould like to know your opinion.

    Thanks in advance,

    Nuno Paquete

  • Malcolm Dew-Jones

    #2
    Re: PHP compiler.

    Nuno Paquete (nmp@ispgaya.pt ) wrote:
    : Hi group.
    : I hould like to write my code with a compiler instead of a text editor.
    : What compilers do you advice me?
    : I hould prefer compiler to run on Linux, but you can refer to windows'
    : compilers to.

    : I hould like to know your opinion.

    You misunderstand something, or your words are wrong.

    Normally you create your source code in a file using a text editor.

    Then you pass that file to either a compiler or interpreter, depending on
    the language.

    A compiler compiles the source code to create an executable file that can
    be stored on disk and run later. An interpreter compiles the source code,
    but stores it in memory, not in a file, and runs the compiled program each
    time it does this.


    Comment

    • Default User

      #3
      Re: PHP compiler.

      Nuno Paquete wrote:[color=blue]
      >
      > Hi group.
      > I hould like to write my code with a compiler instead of a text editor.
      > What compilers do you advice me?
      > I hould prefer compiler to run on Linux, but you can refer to windows'
      > compilers to.
      >
      > I hould like to know your opinion.[/color]


      Compilers don't write code, they, well, compile it. I think you are
      confused with an IDE, which is a combination of a text editor, a
      compiler and a debugger all bundled and able to interact.

      This raises the question, why? The reason for having such an animal for
      programming in something like C is that you can run or debug code as you
      write. You aren't going to be able to do that with PHP in any way (at
      least not that I know of). What advantage do you think it will give you?




      Brian Rodenborn

      Comment

      • Michael Austin

        #4
        Re: PHP compiler.

        Default User wrote:
        [color=blue]
        > Nuno Paquete wrote:
        >[color=green]
        >>Hi group.
        >>I hould like to write my code with a compiler instead of a text editor.
        >>What compilers do you advice me?
        >>I hould prefer compiler to run on Linux, but you can refer to windows'
        >>compilers to.
        >>
        >>I hould like to know your opinion.[/color]
        >
        >
        >
        > Compilers don't write code, they, well, compile it. I think you are
        > confused with an IDE, which is a combination of a text editor, a
        > compiler and a debugger all bundled and able to interact.
        >
        > This raises the question, why? The reason for having such an animal for
        > programming in something like C is that you can run or debug code as you
        > write. You aren't going to be able to do that with PHP in any way (at
        > least not that I know of). What advantage do you think it will give you?
        >
        >
        >
        >
        > Brian Rodenborn[/color]

        Unless you use something like LSE (Language Sensitive Editor) based on
        the TPU Editor on VMS. you could write, and tell it to compile and
        highlight the errors -- long before there was Visualanything. But, it
        doesn't speak PHP.

        too many people call themselves programmers cause they can push some
        buttons and magic happens and they have an application.. most couldn't
        debug real code if their life depended on it...

        Michael.

        Comment

        • Guest's Avatar

          #5
          Re: PHP compiler.

          > I hould like to write my code with a compiler instead of a text editor.[color=blue]
          > What compilers do you advice me?[/color]

          Sounds to me like you are not looking for a compiler my friend. You are looking for an IDE. There are a few good ones out there. You might look at the following options:

          1 - http://www.zend.com/store/products/zend-studio.php

          2 - http://www.nusphere.com/products/index.htm

          3 - http://www.sapien.com/primalscript.aspx

          _______________ ________
          Wil Moore III, MCP | Integrations Specialist

          Comment

          • Chris Hope

            #6
            Re: PHP compiler.

            Default User wrote:
            [color=blue]
            > This raises the question, why? The reason for having such an animal for
            > programming in something like C is that you can run or debug code as you
            > write. You aren't going to be able to do that with PHP in any way (at
            > least not that I know of).[/color]

            I don't know about other IDEs but the Zend one lets you run the code from
            within it, step through your code, add breakpoints and watches; so it can
            be done in PHP. I haven't used this feature that often but it can be very
            useful to add watches instead of having to echo variables out all the time
            when debugging code.

            --
            Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/

            Comment

            • nice.guy.nige

              #7
              Re: PHP compiler.

              While the city slept, Michael Austin <maustin@firstd basource.com> feverishly
              typed:
              [color=blue]
              > too many people call themselves programmers cause they can push some
              > buttons and magic happens and they have an application.. most couldn't
              > debug real code if their life depended on it...[/color]

              Aint that the truth! I have some C++ (DOS based) knowledge, and good C and
              Java experience gained in a Unix environment. A while ago I had to work on a
              project using Visual C++ so I installed Visual Studio and picked up a very
              large book and followed the first tutorial. After pressing several buttons
              and selecting a few options I had a pretty good text editor - like notepad,
              but supporting multiple files - and I hadn't written a line of code (well,
              maybe adapted 1 or 2)...

              It also amazes me the number of people who call themselves web designers
              because they realise they have a copy of Frontpage on that PC they bought.
              Strangely, the same people don't call themselves authors because they have a
              copy of Word, or accountants because they have a copy of Excel...

              Cheers,
              Nige

              --
              Nigel Moss.

              Email address is not valid. nigel@nigenetDO G.org.uk. Take the dog out!
              http://www.nigenet.org.uk | Boycott E$$O!! http://www.stopesso.com
              In the land of the blind, the one-eyed man is very, very busy!


              Comment

              • Tony Marston

                #8
                Re: PHP compiler.


                "Chris Hope" <blackhole@elec trictoolbox.com > wrote in message
                news:1087952915 _75183@216.128. 74.129...[color=blue]
                > Default User wrote:
                >[color=green]
                > > This raises the question, why? The reason for having such an animal for
                > > programming in something like C is that you can run or debug code as you
                > > write. You aren't going to be able to do that with PHP in any way (at
                > > least not that I know of).[/color]
                >
                > I don't know about other IDEs but the Zend one lets you run the code from
                > within it, step through your code, add breakpoints and watches; so it can
                > be done in PHP. I haven't used this feature that often but it can be very
                > useful to add watches instead of having to echo variables out all the time
                > when debugging code.[/color]

                I have been using PHPEdit from http://www.phpedit.net for 2 years now, and
                that has an interactive debugger. I would be lost without one.

                --
                Tony Marston

                This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




                Comment

                • Nuno Paquete

                  #9
                  Re: PHP compiler.

                  Malcolm Dew-Jones wrote:
                  [color=blue]
                  > Nuno Paquete (nmp@ispgaya.pt ) wrote:
                  > : Hi group.
                  > : I hould like to write my code with a compiler instead of a text editor.
                  > : What compilers do you advice me?
                  > : I hould prefer compiler to run on Linux, but you can refer to windows'
                  > : compilers to.
                  >
                  > : I hould like to know your opinion.
                  >
                  > You misunderstand something, or your words are wrong.
                  >
                  > Normally you create your source code in a file using a text editor.
                  >
                  > Then you pass that file to either a compiler or interpreter, depending on
                  > the language.
                  >
                  > A compiler compiles the source code to create an executable file that can
                  > be stored on disk and run later. An interpreter compiles the source code,
                  > but stores it in memory, not in a file, and runs the compiled program each
                  > time it does this.[/color]

                  You're wright, sorry my mistake.
                  What I need is an IDE, I know that a compiler is to create an executable (in
                  C/C++) or a binary bytecode (Java).

                  Regards,

                  Nuno Paquete

                  Comment

                  • Nuno Paquete

                    #10
                    Re: PHP compiler.

                    > This raises the question, why? The reason for having such an animal for[color=blue]
                    > programming in something like C is that you can run or debug code as you
                    > write. You aren't going to be able to do that with PHP in any way (at
                    > least not that I know of). What advantage do you think it will give you?
                    >
                    >
                    >
                    >
                    > Brian Rodenborn[/color]

                    Hi.
                    JSP is not a programming language, it is a server side script language, like
                    ASP, and for this script languages I've got IDEs to compile the code, and
                    more importante, use reflexion, I think this is the word. I'm talking about
                    referencing a variable, then type dot '.' and give all the functions
                    properties available to use.
                    You know what I mean? For JSP we've got JBuilder, for ASP we've got .NET and
                    so on.

                    Regards,

                    Nuno Paquete

                    Comment

                    • Nuno Paquete

                      #11
                      Re: PHP compiler.

                      laidbak69@hotma il.com wrote:
                      [color=blue][color=green]
                      >> I hould like to write my code with a compiler instead of a text editor.
                      >> What compilers do you advice me?[/color]
                      >
                      > Sounds to me like you are not looking for a compiler my friend. You are
                      > looking for an IDE. There are a few good ones out there. You might look at
                      > the following options:
                      >
                      > 1 - http://www.zend.com/store/products/zend-studio.php
                      >
                      > 2 - http://www.nusphere.com/products/index.htm
                      >
                      > 3 - http://www.sapien.com/primalscript.aspx
                      >
                      > _______________ ________
                      > Wil Moore III, MCP | Integrations Specialist[/color]

                      Hi.
                      I hould like to try Zend but it' not free.
                      Do you know some free PHP IDE?

                      Nuno Paquete

                      Comment

                      • Nuno Paquete

                        #12
                        Re: PHP compiler.

                        Tony Marston wrote:
                        [color=blue]
                        >
                        > "Chris Hope" <blackhole@elec trictoolbox.com > wrote in message
                        > news:1087952915 _75183@216.128. 74.129...[color=green]
                        >> Default User wrote:
                        >>[color=darkred]
                        >> > This raises the question, why? The reason for having such an animal for
                        >> > programming in something like C is that you can run or debug code as
                        >> > you write. You aren't going to be able to do that with PHP in any way
                        >> > (at least not that I know of).[/color]
                        >>
                        >> I don't know about other IDEs but the Zend one lets you run the code from
                        >> within it, step through your code, add breakpoints and watches; so it can
                        >> be done in PHP. I haven't used this feature that often but it can be very
                        >> useful to add watches instead of having to echo variables out all the
                        >> time when debugging code.[/color]
                        >
                        > I have been using PHPEdit from http://www.phpedit.net for 2 years now, and
                        > that has an interactive debugger. I would be lost without one.
                        >[/color]

                        Hi, the site doesn't exists.
                        Is your typing correct?

                        Nuno Paquete

                        Comment

                        • nice.guy.nige

                          #13
                          Re: PHP compiler.

                          While the city slept, Nuno Paquete <nmp@ispgaya.pt > feverishly typed:
                          [color=blue]
                          > Tony Marston wrote:[color=green]
                          >> I have been using PHPEdit from http://www.phpedit.net for 2 years
                          >> now, and that has an interactive debugger. I would be lost without
                          >> one.[/color][/color]
                          [color=blue]
                          > Hi, the site doesn't exists.
                          > Is your typing correct?[/color]

                          Well, I clicked on the link and went straight there! Maybe try again? The
                          site could have been out to lunch when you tried it ;-)

                          Cheers,
                          Nige

                          --
                          Nigel Moss.

                          Email address is not valid. nigel@nigenetDO G.org.uk. Take the dog out!
                          http://www.nigenet.org.uk | Boycott E$$O!! http://www.stopesso.com
                          In the land of the blind, the one-eyed man is very, very busy!


                          Comment

                          • Nuno Paquete

                            #14
                            Re: PHP compiler.

                            nice.guy.nige wrote:
                            [color=blue]
                            > While the city slept, Nuno Paquete <nmp@ispgaya.pt > feverishly typed:
                            >[color=green]
                            >> Tony Marston wrote:[color=darkred]
                            >>> I have been using PHPEdit from http://www.phpedit.net for 2 years
                            >>> now, and that has an interactive debugger. I would be lost without
                            >>> one.[/color][/color]
                            >[color=green]
                            >> Hi, the site doesn't exists.
                            >> Is your typing correct?[/color]
                            >
                            > Well, I clicked on the link and went straight there! Maybe try again? The
                            > site could have been out to lunch when you tried it ;-)
                            >
                            > Cheers,
                            > Nige
                            >[/color]

                            That's it.
                            One question: is it free?
                            Does it run under Linux?
                            I hould like to have an IDE that is free and run under Linux.

                            Thanks for the answers,

                            Nuno Paquete.

                            Comment

                            • Default User

                              #15
                              Re: PHP compiler.

                              Chris Hope wrote:[color=blue]
                              >
                              > Default User wrote:
                              >[color=green]
                              > > This raises the question, why? The reason for having such an animal for
                              > > programming in something like C is that you can run or debug code as you
                              > > write. You aren't going to be able to do that with PHP in any way (at
                              > > least not that I know of).[/color]
                              >
                              > I don't know about other IDEs but the Zend one lets you run the code from
                              > within it, step through your code, add breakpoints and watches; so it can
                              > be done in PHP. I haven't used this feature that often but it can be very
                              > useful to add watches instead of having to echo variables out all the time
                              > when debugging code.[/color]

                              Ah, interesting. Probably not interesting enough to buy it (I gather
                              from other replies that it's not a free product). A context-capable
                              editor and a local server have worked adequately so far. For that
                              matter, I do my C development at home using gcc under cygwin without
                              bothering with an IDE or even a standalone debugger.



                              Brian Rodenborn

                              Comment

                              Working...