|
just another regularban.info web blog |
| MEMBERS: | Php - An In-Depth Look
What is PHP? PHP stands for PHP: HyperText Preprocessor, it is a server-side scripting language, and as the name goes, it is to create dynamic and interactive Websites for your visitors. Maybe you currently make your Websites in HTML? HTML alone cannot create dynamic Web pages, HTML is clearly defined as a static language, as it is always static and mainly is used for structuring (or styling, in some cases) a document (or a Web page, if you like). What do we mean by server-side scripting? You may already know, but HTML is a client-side language, so the browser translates the HTML code into "bytecode" that the computer can understand, and so the computer translates bytecode into what we can clearly understand, text, for example. Server-side scripting is a little different, a little bit more added to the story. As with PHP, server-side scripting languages have an interpreter inside a machine, that translates the code (in our case, PHP code) to HTML code (that the browser can understand), and then the same process will take place with the browser translating the HTML code to bytecode, and so forth. With server-side scripting languages, you don't need anything adding to your browser or computer, as the interpreter inside the machine that hosts the particular Website does most of the work. What's the fuss with server-side scripting languages, then? The thing that makes server-side scripting a must nowadays is because it can generate dynamic Web pages, but what do we mean by dynamic Web pages? Well, imagine you wanted to start a forum, and you used HTML. Okay, you used a form to submit the data and it is sent to your e-mail address, and you have to edit the static Web page every time you want a new post added. That, to me, would be the most annoying job of creating a Website. However, with PHP (or any other server-side scripting language, for that matter), can be completely automated, and you'd not have to edit your file even once! The thing that PHP does, is sends the form data to a different page, saves it in "pre-defined" variables (things that store a value), and using something called a "while loop" that continually loops all the posts saved in the Web page - and that's it! PHP stores the posts in a MySQL database (something that holds data, if you like, like member accounts, etc) and uses that as long-term memory. But if we're talking about server-side scripting languages, what makes PHP different from the rest? Well, simply put, PHP is probably the best thing that has come into the server-side scripting genre. If you have heard about other scripting languages like Perl or ASP/ASP.NET, you'll come to find that they are extremely hard to learn from. Put it this way, the majority of Web developers that use ASP.NET, for example, are those who have come from a different programming background, like have known VBScript, or other languages that's in relation to ASP.NET, the same with Perl. The difference between PHP and the rest, is PHP is incredibly easy to learn, especially for the newbies towards this industry, and PHP has took several steps to ensure an easy introduction to those newbies to the world of programming. Let's do an example, lets see which is the easiest to understand, out of PHP, VBScript and Perl, by doing a simple "Hello World" program, that outputs text to a Web page: PHP: echo "This is some text that'll be shown in a Web page..."; VBScript/ASP.NET: Response.Write("This is some text that'll be shown in a Web page..."); Perl: #!/usr/bin/perl print "content-type: text/html nn"; print "This is some text that'll be shown in a Web page..."; Okay, now I am not going to say things like "well, obviously PHP is the easiest to understand" - as obviously, we all have different preferences, but what I can say is, that they all do the same thing. Which seems the most logical to you? In my opinion, the two most logical ones for me is PHP and VBScript/(ASP.NET). Now it's up to you which one you want to go ahead with, experiment which one is best for you, after all, we all have dfferent tastes. Good luck! Below are a few resources to get started with PHP: # - w3schools.com # - php.net # - mysql.com
Lex Parsimoniae
Lex Parsimoniae is Latin for "Law of Parsimony", which pulled out into its simplest form is the The Law of what can be spared, should. This is a theory that I have been studying for the past year and through observation believe that this can be applied to all situations that require a more efficient, functional solution. This paradigm has many names, but is best know as Occam's Razor. His razor suggests that when resources are limited or when speed of function is essential, design / complexity trade-offs should be based on what does the least harm to the probability of success, however that is defined. Form is Function There is a school of thought that beauty in design results in good function, but I prefer to subscribe the fact that just concentration on the functionality will by its very nature, create its own aura of design. Sometimes, the focus on functional efficiency inspires a feeling that goes beyond aesthetics and ultimately give us the sense that its form is of a higher echelon. Barrier To Entry The brain is an amazing piece of kit. One of its most amazing functions is its ability to optimise when processing data. Each brain has been trained over many years (or maybe it inherently has the ability) to simplify individual objects into groups. Instead of seeing each individual blade of grass, the mind sees a field. Millions of pieces of data grouped into one object because it knows, to comprehend millions of pieces of grass would take and enormous amount of effect. Effect that could be focused elsewhere. So it generalises to make life easier. This sort of information overload can happen in design as well; Too much will distract from your likely objective. Remember that 7 Second Rule? If your web app or website has 7 seconds to impress then wouldn't you prefer showing off your functional muscles? How useful your app is? and not long it takes to load the really cool (bandwidth crunching) design? Remember how it easy it is to make your mind up about someone when you them for the first time. Same rules apply. Just Do It! What are your objectives and goals? Hopefully, when developing a web app or website, to make your (or your users) life easier! And let's remember, this 'thing' we call the Internet is broken. So don't break any further with dodgy CSS and bloated javascript. Functional Turn Around is the most impressive aspect for me these days. Spend time developing how the app works, refine it, refine it again, then again. Then when it works, design around the edges. If you like Latin phrase then try this one: "entia non sunt multiplicanda praeter necessitatem", or "entities should not be multiplied beyond necessity"or just remember, K.I.S.S - Keep it Simple, Stupid! For more information about Occam's Razor and various other development theories, read this Design and Development Blog at www.gammatan.co.uk
Do You Want To Build A Money Making Website?
No matter what site you build it will never be able to make money unless it gets traffic. You ask anyone online who is either new or intermediate what their biggest challenge is. The majority would say that getting traffic to their site is their number one priority. So when building a site you will naturally want to build it in a way that will help this to happen. In order to do this you need to research extensively what way you will be able to get in front of people searching for products or information relative to your sites theme. You will need to research markets somewhat relative to your interests. For example you may be interested in travel. Some guru's say you should not necessarily build a site around something you are interested in - instead you should build a site around a subject that will make you money. While this is understandable many people would be challenged to keep up the motivation doing something they do not like when they are starting out - because at this point there will be very little if any money coming in. What you can do is pick a subject of general interest and then find niches within that which are profitable. This way you have the best of both worlds helping you to stay motivated and make money at the same time. So your primary goal is to build a site that can compete with others and make you money. Develop the site in a way that the search engines will be able to understand and your visitors will enjoy. This way you will build relationships and as a result make money. To learn more on how to put all this together select any of the following links.
|
* About Archives
Categories:
Last Updated: |
| regularban.info
is proudly powered by WordPress MU running
on regularban.info.
Create a new blog and join in the fun! Entries (RSS) and Comments (RSS). |