What Makes a PHP Web Application?
Once and a while a get an email question put to me that I think many others are probably wondering about the same thing.
I got this email from Jordan:
I am very interested in learning how to program, specifically with php. I went through all you videos which are excellent!
My main question is, after watching your videos and reading some tutorials I now understand the concepts such as variables, arrays,if statements etc., but have still have no idea how to put these together to create a web application.
I know exactly what I want the site to do but just have no idea where to begin. Where do I begin, is there something I can purchase that will guide me?
The simple answer to this is to just start writing code. Understanding PHP theoretically, is only the beginning of actually truly knowing it. Once you sit down and start writing code, things will seem to magically clear up as you go along.
Since most PHP Web application deal with processing forms, I would suggest that you practice processing a few forms .. actually write the code as an exercise. You could try:
- Capture the form data.
- Validate the form data.
- Finally, send the validated captured form data via email to yourself.
I cover these things in my videos BTW.
WHAT MAKES A WEB APPLICATION?
A web application is simply a website or web page that does something, it provides some sort of functionality that requires decision making.
Examples of web applications include:
- Newsletter creation sites.
.. the list of possibilities is practically endless.
DATABASES – A KEY PART OF MOST WEB APPLICATIONS
One common characteristic of a web application is that of storing and retrieving of data from some sort of database – the ‘database drive website’.
PHP is flexible and offers many options in terms of the databases you can use. That said, PHP is commonly used with MySQL so it is probably a very good idea (almost essential,) that you learn at least the basics of MySQL.
Another question from Jordan:
Ok great! I had one other question for you.
I went through all of your videos, except for the oop which I didn’t want to begin until I get a good grasp on programming old school php. I have tried to look at other simple scripts and understand them. Even though I understand the concepts you taught, I always get lost.
Are there certain functions along with the basic concepts that I should memorize, it seems like there is always something on these scripts that I don’t quite understand.
You should not try to memorize anything, there is simply too much out there and you will find that you tend to forget a lot of stuff as your progress in your quest to become a PHP nerd.
Instead, you should just write code to get a feel for PHP and web programming in general. In a short time you will find that by writing code the information will just stick.
That said, now that you at least understand the concepts, it is time to put them to practice:
I would suggest that you start with a simple task (like a form that people can use to contact you – email contact form,) and see how that goes. Start simple then add functionality like validation, formatting etc ..
TOP 50 PHP FEATURES/FUNCTIONS?
Actually, there is a key group of PHP functions/functionalities that are used more often than not. I have put together a list for a magazine article I wrote many months back … I will see if I can dig it out.
Hope that helps,