Archive for August, 2008

Automated unit testing in PHP using PHPUnit

August 28th, 2008

As part of the ZendFramework excercise I am following the author describes some automated testing process for the Framework modules as we build them. He talks about using the PHPUnit testing software which is available here This allows a developer to write automated tests for his objects as he develops and greatly improves the security of the code. The installation manual is here which describes how to install and run the product.

Couple of things you need to know before setting this up for the i5 Read more…

LAMPS Server, PHP, PHP Programming, Uncategorized, ZendFramework , ,

Installing a MySQL interface

August 27th, 2008

I am in the throws of going through a tutorial which shows how to set up and use the ZendFramework. It comes as part of a book I found which goes into some detail about the ZendFramework but in a much more readable (understandable?) method than the documentation. Once I have been through the book and if I find it is very useful I will post a link to it on the blog. Not sure yet how good it is but early indications are it is pretty thorough and well put together. One of the requirements of the tutorial is the use of the MySQL database, as this is optionally installed with ZendCore. I wanted to install the interface I like to use for MySQL which is phpMyAdmin. The alternative method which is available using the QP2TERM or qsh and calling the mysql binary is pretty clunky and not easy to use, phpMyAdmin is a great alternative and easy to install. Read more…

HTTP Server, LAMPS Server, MySql, PHP, PHP Programming, ZendFramework , , , ,

5250 emulation screen within WSDC

August 26th, 2008

I was trawling through the iNetwork forums and found this link to an open source emulator plug in for WSDC. It installed in a few minutes and configured just as easily as the manual stated. Having requested a single IDE for both IBM and PHP and not getting a result, the next thing was to install it in the Zend Eclipse IDE to see how it worked in there. Read more…

C Programming System i5, PHP, PHP Programming , , ,

Rewrite Problem solved

August 26th, 2008

Sometimes you just have to read the documentation to find out what you did wrong! The ZendFramework uses a concept which pushes all requests through the index.php page in the root directory, this in turn calls the Controller functions to determine how the request is to be handled (yes I made that a lot simpler than it is, but having read through the documentation a number of times it still blows my mind and I cant simplify enough to make sense, so read the docs!). For this to work you have to set up a Rewrite rule which will turn all requests to the URL into a request for /index.php. After reviewing my configs for a previous setup I thought I had it worked out, unfortunately it took a bit more reading of the Apache manuals to figure out why it didn’t. Read more…

Application Modernization, LAMPS Server, PHP, PHP Programming, ZendFramework , , ,

PHP application modernization project stalled but ongoing

August 26th, 2008


Well I had hoped to be a bit further along with the project to enhance my Software Manager Product with a PHP interface using the 5250 bridge, but a couple of things are bogging me down at the moment. Firstly the documentation available and the examples need a bit of work to be able Read more…

Application Modernization, LAMPS Server, PHP Programming , , , ,

Ensure you change the Z5250DEMO User Profile

August 22nd, 2008

I was reviewing the code for the 5250 bridge demo when I came across an issue which should be looked into immediately. One thing the i5 is known for is being secure, the addition of a user profile which allows a user to gain access to the system by a third party application is not normal. I would suggest if you have installed the Zend 5250 Bridge Demo’s that you take the following actions to ensure your system is not compromised. Read more…

Application Modernization, PHP, PHP Programming, Security

Centralized Hints and Tips for LAMP server

August 22nd, 2008

While this link is not i5 Specific it does provide anyone who is looking for help on how to set up a LAMP server a centralized point for information. I did a quick review of the post and the links and found some interesting detail which I thought readers would be interested in. If you are considering a project to set up a LAMP server Read more…

LAMPS Server

Oops need to add another Virtual Host! If you want to see the Zendcore initial page

August 19th, 2008

As part of the setup for NameVirtualHost delivery of my websites I forgot to add a VirtualHost directive for the initial page shown when you simply enter http://serverip:80/. This causes the apache server to return the information found in the initial VirtualHost container we had defined. This was pointing to our new Software Packaging Manager instance so we got the sign on page even though we went through a different port initially. To fix this Read more…

HTTP Server, LAMPS Server, PHP, Systems Management, Uncategorized

The modernization project is underway.

August 19th, 2008

We have started to build out the panels for the initial modernization of the Software Packaging Manager Product. This product is used internally to package all of our products as IBM Licensed Program Product’s. The menu design we have chosen is based on the code we generated for our companies website and uses JavaScript to manage the sublinks. Hera are a couple of screen shots we have of the progress so far Read more…

Application Modernization, PHP, PHP Programming, Uncategorized

Receiver Change schedule

August 15th, 2008

A question which is asked of us many times is how often should you change the journal receiver when you are using RAP as your availability solution. Obviously the longer you leave the receiver before changing it the more data RAP will have to apply at once when it is eventually changed. Our recommendation is to Read more…

C Programming System i5, Disaster recovery, Systems Management

Bad Behavior has blocked 426 access attempts in the last 7 days.