2 Replies Latest reply on Jul 25, 2007 7:18 PM by Newsgroup_User

    Compiled language with similar feel to php?

    Level 7
      I have written several utilities for my album program in php, but this means
      that if I give them to anyone else they have to install php before they can use
      them on their own computers.

      I have never used C++, but the philosophy behind php seems to be very similar to
      that behind it (as I remember it from one or two lectures about 40 years ago),
      so I thought Visual C++ might be the way to go. However the discussions on
      several of the C++ newsgroups I have looked at recently seem to be coming from
      another planet.

      Can anybody suggest which language would be most suitable for this purpose? The
      last high-level language I was recently proficient in was Fortran.

      Clancy
        • 1. Re: Compiled language with similar feel to php?
          Level 7
          Clancy wrote:
          > I have written several utilities for my album program in php, but this means
          > that if I give them to anyone else they have to install php before they can use
          > them on their own computers.

          The same would be true for most compiled languages. If you used Java,
          for instance, they would need to install the JVM.

          > Can anybody suggest which language would be most suitable for this purpose? The
          > last high-level language I was recently proficient in was Fortran.

          If you want to display images, you might want to investigate
          ActionScript 3.0, the language used by Flash, Flex, and AIR (Adobe
          Integrated Runtime):

          http://labs.adobe.com/technologies/air/

          ActionScript 3.0 is an object-oriented language, which is compiled into
          bytecode, and runs in the Flash Player or AIR. Of course, it means that
          your friends would need to install the Flash Player or AIR, but both are
          easy to install (basically, click and you're done).

          Learning ActionScript 3.0 to display a photo gallery might seem like
          overkill, but I get the impression that you're more interested in
          building your own application, rather than using an off-the-shelf
          product. I have been using ActionScript 1.0 and 2.0 for several years
          (even written books about it), but ActionScript 3.0 is completely
          different. It contains a huge number of built-in classes, so can feel
          overwhelming to start with. However, the syntax is very easy, as
          everything is written in plain English, and it uses the same looping and
          conditional structures as PHP.

          The best way to work with ActionScript is with Flex Builder (a new
          version, Flex Builder 3, is due out later this year, but you can try it
          out as a 30-day free trial to see if it appeals to you). The best way to
          learn ActionScript 3.0 is with "Essential ActionScript 3.0" by Colin
          Moock. It has just been published by O'Reilly. I'm reading it, and it's
          excellent.

          --
          David Powers, Adobe Community Expert
          Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
          Author, "PHP Solutions" (friends of ED)
          http://foundationphp.com/
          • 2. Re: Compiled language with similar feel to php?
            Level 7
            David Powers <david@example.com> wrote:

            Thanks for the suggestions.

            >The same would be true for most compiled languages. If you used Java,
            >for instance, they would need to install the JVM.

            Whatever happened to the good old days when you wrote a program, compiled it,
            and ran it (well, at least on any CDC 3600/6600)?

            >If you want to display images, you might want to investigate
            >ActionScript 3.0, the language used by Flash, Flex, and AIR (Adobe
            >Integrated Runtime):
            >
            > http://labs.adobe.com/technologies/air/
            >
            >ActionScript 3.0 is an object-oriented language, which is compiled into
            >bytecode, and runs in the Flash Player or AIR. Of course, it means that
            >your friends would need to install the Flash Player or AIR, but both are
            >easy to install (basically, click and you're done).

            (At least to begin with) I am primarily interested in writing utilities to
            prepare the text files which specify how the album will look, rather than in
            actually displaying the album. The ability to display images is not essential
            for this, though it would be nice to be able to drag and drop them to arrange
            the order in which they were displayed.

            I will have a look at action script, but I will also have look at some books on
            other languages to get an idea of what they can and can't do.

            I have got my basic album engine working pretty well now. It is very flexible,
            and you can readily change the layout, colour schemes and just about everything
            else with the text files. The only thing that is really missing is the ability
            to construct indexes.

            Clancy

            http://www.corybas.com/Cydalba/Gen_page.php
            Clancy