|
|
|
|
Web Development using MySQL - PHP - Apache (including PHPRunner Review) 6/2/2010 Updated 2/22/2012 Preface Introduction I am an experienced programmer on mainframes and windows PCs. I have had only very minor experience in building online applications. Recently I decided to learn about building web sites. My interest is in data management web sites, similar to what one might produce using Microsoft Access.
Updated February 2012. I have completed trying out Alpha Five version 11. All I can say is WOW! It is like Access on steroids and produces very functional desktop or web apps without code. A5 has extensive options and "Genies" to "build stuff for you". There are lots of Ajax based capabilities that "just happen". If you need code, there is Xbasic, very much like VBA. Xbasic can tap into .Net capabilities as well. And while you have to do an Ajax callback to execute Xbasic which runs on the desktop, Alpha Five builds the Ajax callback for you so you just need to learn Xbasic. There is a 30 day free trial that I urge anyone interested in trying. Be sure to load up the Demo app. It has MANY examples of things you can do with Alpha Five without code! And then you can examine the app to see how it works.
Be sure to listen to three videos here http://wiki.alphasoftware.com/Read+me+first Scroll down to the Additional Resources or follow the steps below.
The biggest issue with Alpha five seems to be how to get started and how to learn it. I have been working at this now for three weeks and am just now starting to be comfortable in building web apps. To that end, be sure to follow the steps of the Read Me first page http://wiki.alphasoftware.com/Read+me+first Then, if it still looks interesting to you, I would strongly recommend investing $69 and buying the Total Training videos by Steve Workings. They are excellent. http://image.exct.net/lib/fef51076706102/d/1/Total_Jan25.html After wading through the first several Total Training videos, you should be itching to build something yourself, which I urge you to do before completing all of Steve's videos. You will come back for more!
Introduction I am an experienced programmer on mainframes and windows PCs. I have had only very minor experience in building online applications. Recently I decided to learn about building web sites. My interest is in data management web sites, similar to what one might produce using Microsoft Access. Database: MySQL. Although I have experience with several databases including Microsoft's SQL Server and Express databases, I chose MySQL. It is free. It runs on many platforms and I am told is fairly easy to use.
Web Programming Language: PHP There are a large number of web programming languages out there. I picked PHP because it is free, widely used and with lots of resources available to help you learn it.
Web Server: Apache I have some prior experience with Microsoft's IIS server. I found it was somewhat complex to use. I decided to use Apache. It is free. It runs on Windows, Unix, Linux and other platforms
Installation of MySQL/PHP/Apache: WAMP I had read about bundled installations available for MySQL, PHP and Apache. While looking for them I ran across WAMP. It provides an integrated installation package that ran without incident. It also provides a front-end control panel to start or stop all services. Since I had previously used IIS server I had to stop that service. Also it noticed that I had Mozilla Firefox installed and asked if I would like that to be my default browser. I agreed. After I installed the software and stopped IIS, I started the WAMP and from the tray at right started all services. From the same WAMP icon in the tray I selected "localhost" and was immediately display with the default page, index.php. Don't be confused by the startup page which says Welcome in multiple languages and "IIS7" in the middle. It IS php.
\\localhost\ maps to c:\wamp\www. For most of the PHP apps I generated, they had their own subdirectory name which I copied to c:\wamp\www To access the site I used the URL \\localhost\<directoryname/startupobject.php
Database and Table Creation I had recently been spoiled in using Microsoft Access as it includes not only its proprietary database, but also the administrative tools to create tables and fields. In its native form, MySQL expects you to do so via DOS commands. So I looked for a MySQL administrator application. I found two that seemed both quite workable.
Programming Language to Develop PHP Code MY next challenge was to pick the language to develop the PHP code. Yes, PHP is the language. But there are lots of "development environments" or IDEs and code generators. I personally am opposed to coding except where absolutely necessary. I ideally want something like Microsoft Access where you can use a wizard or manually lay out a form and IDE handles the logic to make the form work. Toward that end I started researching application generators. I was very surprised and pleased to find a handful that easily and quickly generated PHP code which worked first time without error. That was great.
Application generators typically generate multiple types of pages for each table you specify. Some allow you to select which form types are to be generated. These typically include
In using an application generator, I knew that while I would get a workable app, it would be very generic. I often want or need to customize things. I am especially interested in customizations (or generator capabilities) that allow me to
Ability to modify the layout of the generated form proved to be the most difficult.
Application Generator: PHPRunner 5.2 (PHPRunner Review) http://xlinesoft.com/phprunner/ 20 day free trial - Std version $399 - Enterprise Edition $599 Enterprise Edition adds online reports & charts and expanded security. It supports all four of the key capabilities listed above. It supports databases other that MySQL including: MS SQL Server, Oracle, Access, Postgress, DB2 and other databases accessible via ODBC. It appears to have an active Forum. I found several very useful tutorials"
The software also allows you to create PHP code for built in events. It provides some built in event functions/templates such as for sending an email. It took me a while to find it, but there is the ability to create validation logic for specific input fields. The initial generated application worked first time without any errors. There is a forum question/answer showing how to add tabs to add/edit pages. Wonderful! Update 5/2011: The vendor now recommends use of an alternate installation of Apache, MySQL and PHP called XAMP. http://www.apachefriends.org/en/xampp-windows.html I had previously uninstalled WAMP and there were no issues in installing XAMP. I saw the notes re issues for Microsoft Vista and followed their suggestions. The only issue I encountered this time was inability to post the app to my local server and run it. I am following up on that. The vendor offers a FREE test server environment on their server. You can easily upload a test app there. works without issue. The vendor also offers web hosting for Access or MySQL based apps starting at $10/month. There is an easy ability to upload an app to their web host site. The vendor also offers a version to generate an ASP application and another to generate a .Net application.
Other Application Generators
ScriptCase http://www.scriptcase.net/phpgenerator/home/home.php
|