Zend Studio issues and IBM RSE

No one ever said this would be easy, but the problems I am having getting something this simple to work seem to be very unusual (considering other platforms I have worked with).

The CCSID issue was corrected when I used notepad and the iNavigator to copy the file to the IFS. However as I don’t intend to use notepad for development I decided to try out the Zend Studio, unfortunately it doesn’t have the capability to define a link to the ‘i’ so I had to map a drive in windows explorer and use it to see the files on the IFS. This seemed to be OK until I tried to create a new file, it simply refused to let me create a new file despite giving *PUBLIC all rights from the www directory down? I have no idea why it refused to create the file? Previous copies of Studio (Not the eclipse version) did allow me to work with the IFS directories much easier, but they have long since gone in favor of the Eclipse IDE’s. You do have the option to define an FTP link but I could not get that working either…

Next I tried to use the IBM RSE IDE. Everything looked good until I tried to display the file in a browser! The CCSID for the newly generated file has been set to 850? The following is a screenshot of what it displays in the browser! (Click to see enlarged image)

Simple PHP file with CCSID 850 as shown in browser
Simple PHP file with CCSID 850 as shown in browser

As you can see it is totally unreadable! This means that IBM RSE is not suitable either unless I go in and change the CCSID for the files somehow?

So I need to somehow link up Dreamweaver and see if that will allow me to do what I need?

Chris…

12 thoughts on “Zend Studio issues and IBM RSE”

  1. Hi Chris,

    I can actually help you out on this one. I run the Young i Professionals website (www.youngiprofessionals.com) which is done entirely in PHP on i.

    In order to get the Zend Studio for Eclipse connected you will need to use SSH.

    If you are on i6.1, all you need to do is issue the following command on your box:

    STRTCPSVR *SSHD

    If you are running V5R3 or V5R4, then it is a little more involved to set up initially, but not too bad.

    CALL QP2TERM

    ssh-keygen -t rsa1 -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_key -N “”

    ssh-keygen -t dsa -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_dsa_key -N “”

    ssh-keygen -t rsa -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_rsa_key -N “”

    /usr/sbin/sshd &

    Once SSH is running, you define a new connection in Studio as type “SSH Only”. Once your connection is created, you should be good to go. If you have any issues, I will be more than glad to help.

    Brian May

    1. Brian

      Thanks for the pointer, I will certainly give it a try! We are running this on V6R1 so as you say it should be fairly easy. The only thing I wish for is that IBM adds PHP functionality to the RSE IDE shipped with WDS! Why I need to run 3 IDE’s just to manage PHHP development is beyond me… I use Dreamwaever to write the pages for our external website, I use WDS RSE for internal program development and I now have to use Studio to develop PHP for the i…

      Chris…

  2. Just between us, I have been talking to George Farr about that very requirement. If Zend Studio and RDi are both based on eclipse, they should be able to spend a little time to integrate them.

    1. Unfortunately nothing posted is only between you and me, but I get your meaning 🙂 I would add my support to that request as I am sure many others would. If only they spent as much time on things other than RPG…..

  3. Let me know if you get your Studio up and running. I actually like it better than the old studio. Purely my opinion though. Perhaps it is because I spend most of my time in RDi and they are very similar.

  4. Hi Chris,

    Nice Blog, I’m pretty new to PHP development on the I5 (6months or so).

    I haven’t liked the Zend Studio for I Edition much either. I haven’t tried IBM RSE IDE, but i’m getting tired of going through IDEs. I just use Netbeans for writing PHP (i like the autocomplete, keyboard shortcuts and syntax coloring), and I use Filezilla to upload files. For managing the DB2 i use the iSeries Navigator, which is really slow but allows me to run SQL and explore the database. I was really hoping Zend Studio for I was going to be the one stop shop for PHP development, DB2 development, and deploying.

    1. Dave

      Glad you like the Blog!
      I have been bitching about the IDE situation for sometime, but unfortunately it seems nothing changes unless it has an ‘R’ a ‘P’ and a ‘G’ in it! Why it is so hard to get the IBM RSE to do PHP I do not know! Probably because they want EGL to take hold? I hope one day IBM gets with the rest of the world and provides tools the community wants not what they want to give us! Even the PHP installation is bastardized to fit in…. The Zend Studio has some benefits in that I use the IBM RSE a lot for normal development, so the interface is fairly similar. But the lack of interaction with i/OS is limiting what I can do with it, SQL is only part of that…

      Chris…

  5. @BrianTheYIP
    Hi Brian, I found your hint while trying to configure Zend Studio to connect to our i520 (OS V5R3). The keys were successfully created and sshd started; however, when I try to connect through Zend Studio I get the error ‘RSEG1066U: Operation failed with exception ‘invalid server’s version string’.
    The openssh version is 3.5p1. I can connect to the AS through Putty.
    Any more hints?
    Thanks 🙂
    Fabio.

  6. Hi, Brian,

    I too used your suggestions to try and connect my Zend Studio for Eclipse but when I try to click on the root I get the message
    “Operatiion failed with exception’Java.net.ConnectException:Connection refused: connect’
    Any ideas?

    @ilmasce

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.