Concluding the European WinPHP Challenge
May 31st, 2010 by Left on the Web No comments »WinPHP: Dante
May 30th, 2010 by drydenmaker No comments »Sometimes it is enlightening to go through a deployment. I finished another round of code enhancements on Dante and Crossley Framework and then deployed them to my WinPHP competition server. Running through the basic functionality, I found some easily fixable errors that simply didn’t get into SVN. SVN (or any VCS) does make a nice basic deployment tool for Windows. Using it I can make sure that everyone pulling from me gets the same code that I deploy for myself.
When I first started my deployment I thought that there were some major differences in the web.config from IIS 7 to IIS 7.5. Instead, what I discovered is that installing all the IIS modules I needed was key. There are a few things like ‘Basic Authentication’ that are not there by default. I had some problems with my URL rewrites that I never did track down. They didn’t seem to work even after I installed the proper module. Then while fooling with some other things it just started working. Some day I will find out what it was, I am bound to run into it again during deployment. I did however find a tool I want to get more acquainted with called ‘Failed Request Tracing Rules’ which should help me in the future with my URL rewrites on IIS. Working with the ASP MVC has shown that IIS can be used in some interesting ways without rewrite rules. I plan on looking into that as well in future releases of Dante.
Blobs are nearing completion
May 30th, 2010 by Left on the Web No comments »PHP on Windows: a recommendation
May 25th, 2010 by drydenmaker No comments »The other day, during a meeting with a potential customer, I was asked “Would you really recommend running PHP on Windows?” This was after I had expressed my intent to build on existing infrastructure, no matter what the language or OS. This question struck me since I never thought about it in the sense of a ‘recommendation’. Most the time I haven’t been involved until after the OS was chosen. Even when I was involved in the OS choice, thinking back, I don’t think that PHP actually fueled that answer. As I thought about it I realized that times have changed. In the 90′s I would have never recommended Windows as a web server. I also would not have recommended Linux or Mac as a desktop. Since then what has happened? Well, Windows 2k, OSX and Ubuntu… but, back to PHP and Windows. Often I get the feeling that PHP caries a negative stigma beyond the common ‘my programming language is better than yours’ attitude. Usually this is expressed by someone with limited or non-first-hand experience, or as blind loyalty to a Microsoft Partner agreement.
So should it make sense to host your PHP site on Windows? I have used Windows as my development desktop for some time. My reason was that windows was simply given the most gaming attention. A fact which admittedly has nothing to do with server OS. I will express my experience/perspective while you draw your own conclusions.
All platforms go through growing pains. Recently I have experienced that with ASP.NET MVC. In fact I have experienced similar negatives at one time or another on all platforms I use : Windows, Apple, Linux, BSD, Perl, PHP, Python, Java, C#, VB.NET… So I really don’t find myself in a ‘camp’ or as an ‘activist’ or ‘zealot’ since I am purely concerned with the outcome of the given task taking into consideration the ecosystem it needs to survive. Say I was a landscaper that preferred palm trees and someone asked me to put a tree at their Montana home. I could make one stand and maybe even grow for a time. However the tree would certainly not last past August.
I have been afforded the challenge of testing PHP in places I didn’t think it would grow. But like a yucca, you can find it in places you may not think likely. I have written windows services, servers and daemons using PHP. I have experimented with desktop GUI applications and have automated all kinds of administrative operations across all mainstream operating systems. Was PHP always the ideal tool for the job. Admittedly not. However it is conceivable that with a little attention, it could be quite a robust tool for any of those uses, and is quite ideal an many cases.
Perhaps this is why in ’07 cross platform compatibility seemed to become a front-seat concern for companies like Zend, who desired PHP reach its full potential on Windows. My greatest concern at the time was the simple non-existence of some extensions on Windows. The company I was working for was hosted on Linux at the time, and had gotten accustomed to some extensions. The local network admin had required Windows desktops which didn’t thwart our development using PHP. Never the less, there were shortcomings to this sort of practice at the time. Microsoft ans Zend addressed this. The solution to solidifying a platform’s foundation on an operating system is to get expert resources involved. I am happy to say that the WinPHP community is thriving and well today.
Given the attention that is being given to the platform running on Windows I suspect you will see more and more production sites being hosted on Windows and serving up things like WordPress and Dante and even more custom apps. The truth of the matter is that developing in PHP5 is quite enjoyable. The ease of bringing anyone from other OOP programing languages like Java and C# on board makes assembling teams much easier. The fact that PHP 5.3 enhances frameworks and support for Windows native APIs is gravy on the already tasty steak that is PHP. (apologies to the vegans)
So my recommendation: ignore out-of-date information on any subject. Do hands-on tests to see if it fits the methods and comfort level of your ecosystem. Don’t let OS dictate your programming language.
Connecting to Azure
May 20th, 2010 by Left on the Web No comments »Getting some output
May 12th, 2010 by Left on the Web No comments »Proof of Concept?
May 12th, 2010 by nathanroze No comments »Well, it took quite a bit longer than expected, and it still isn’t wat I wanted it to be.
Currently I’m trying to connect to the competition server WinPHP gave me, but I do not seem to be able to connect though.
I’m afraid there will be no working example of the Proof of Concept today…
Also JavaScript seems to be more a pain in the ass then I expected;
building html isn’t that hard, but when it comes to setters/getters and functions…
Some good reads about setters/getters are Testing getters and setters and Set your Setter and Get your Getter.
I now do have some PHP Classes and bit of JavaScript.
Together these scripts can ‘build’ an html page, but all the extra possibilities OOfA is all about are still not in there
Hopefully the coming days will bring me some more luck.
Setting up my Windows environment
April 22nd, 2010 by Left on the Web No comments »The schema
April 21st, 2010 by nathanroze No comments »Well, here it is, an image of the layers I want to cover, and wat kind of “datatype” I will be using in each layer.

Currently I’m making a proof-of-concept, and I hope to be able to show it within a few days.
Though it may take up to a week again (wednesdays are my only days with a bit of spare time).
Starting WinPHP Challenge
April 15th, 2010 by admin No comments »Last week I received the details for our competition server for the WinPHP Callenge (see: http://www.eurowinphp.com/).
The server is running Windows 2008 R2, which is a change for me since over the past years I have mostly been developing on Linux/Apache. The first challenge was to install IIS which wasn’t included in the initial setup. I briefly considered using Apache, but to make it a real challenge it should be IIS this time.
At the moment I’m reading up on what difference between Apache and IIS are important to my application. For now the main issue seems to be that I need an alternative for .htaccess and especially the RewriteEngine. IIS uses an xml files called Web.config to set application specific settings.
I found these posts:http://learn.iis.net/page.aspx/557/translate-htaccess-content-to-iis-webconfig/ and http://learn.iis.net/page.aspx/470/import-apache-modrewrite-rules/ which seem to cover most of what I need.
Now it’s time to install PHP, configure a website and upload some code to run tests.



