www.devguides.com | The developers choice   

 
Technologies available 
    Apache (1)
    ASP (0)
    ASP.NET (0)
    C&C++ (1)
    Google (1)
    HTML (1)
    Java (0)
    JavaScript (1)
    PERL (0)
    PHP (3)
    Unix (0)
    Visual Basic (0)
    XML (0)

Databases 
    MySQL (0)
    Oracle (0)
    PostgreSQL (0)
    SQL Server (1)

Security against 
    Backdoors (0)
    Malicious Mobile Code (0)
    Trojan Horses (0)
    Viruses (0)
    Vulnerabilities (0)

 
 You are currently reading

Introduction to PHP.
posted by Andres @ 16:39 PM | Tuesday, May 04, 2004
In this article you'll learn some of the basis of PHP, the most popular web development language in the world. It's necessary to read this article for developers that would like to know a bit more of PHP.


 The article requested:
Before you learn PHP.
In this article I'll show you why PHP is very useful and easy of course, it reminds me when I used to hear only about computer languages, everytime that I heard about the three wonderful letters 'PHP' I started to think a lot asking myself (This language is hard, I need help, I'm lost!) and I used to tell my friends about it, pretty funny.

The most funniest thing is that none of my friends like Computer Programming!, imagine.. me.. telling my friends about programming, I just quit telling them the beauty of Computer Development because everytime they come up with something new for me in order to bother me, pretty annoying though, but what can I say, they are my best friends and thanks to their "positive" support I've gain more "Power" or "more background" in computer development. It's nice that in a group of friends someone is a developer. Enough talk, let's get down to Web development, first things first, never be afraid of using something new, If the language sounds pretty hard please do not be afraid and do the right thing (if you know what I mean), if for some reason you are having problems, please send your questions or post your questions in our "future" forum.

What is PHP?
Yes, PHP is a Web Scripting Language and the best of all, it's free. Let's get familiarized about the history. A few years ago, PHP stood for "Personal HomePage" and it was created by Rasmus Lerdorf with the objective to track visitors from his website. While the days were passing, PHP started to grow a lot and it became "HyperText Preprocessor". In a more technical theory, PHP is a server-side, cross-platform, HTML embedded scripting language. Allow me to explain this theory for you.
  • server-side
  • Actually means that everything happens in the server, some developers don't know what a server is, a server is a computer connected to the internet containing the website. So if you enter to any webpage you're actually requesting the server in order to view the webpage, once the server knows that you want to see the website, the server starts to parse the PHP code (starts to obey the PHP commands) and after this process (happening in less than a second, actually depends on how heavy the PHP file is) the server spits the results in a plain HTML file and of course, the user can't see the PHP code because the server only spits the result. When you see that a language is server-side, it means that the server deals with it, not you. When you see client-side (such as JavaScript) it means that your browser will deal with it and when we talk about client-side languages it also means that you can see the code.

  • Cross-platform
  • This means that PHP works in every operating system, if you are using Windows XP and would like to transfer your work to a MAC, just copy and paste and you're done, if you see errors then you must make small modifications.

  • HTML embedded
  • When you see this it means that you can put your PHP code within the HTML document for example if you would like to put the current date, and the font color red then you would have to include the HTML tags for the color and inside the tags you would have to include your PHP code in order to get the current date.
As you can see so far, PHP is not actually a Computer Programming Language because we are not dealing with events at the precise moment, PHP acts right after an event occurs for example if you see a form, you fill the information needed, you press submit, you'll have to wait until the form handler page loads instead of seeing the action at the same moment.
[1][2][3][4][5][Getting to know PHP.]


Copyright ©2004 Andrab, Inc. All rights reserved.