PHP Tutorial
This is a tutorial on basic PHP. I wrote it because I wanted to give something back to the OpenSource community. PHP is free, and this is my little way of saying thanks!
The tutorial is aimed at users who have no previous experience with programming in PHP or any other programming language. But there’s no guarantee that this goal has been reached. It’s very likely that there are places where the user is assumed to know things he or she won’t know at this point of learning PHP.
I wrote this tutorial after having used PHP for quite some time. Because of that, some sections of the tutorial might be difficult to understand — it’s hard to remember afterwards how difficult things were. So if you have any problems with parts of the tutorial, then please leave a comment with your advice.
Contents
- Introduction gives you a quick introduction to PHP.
- PHP Basics shows you the first actual PHP code.
- Variables describes how variables work in PHP.
- Control Structures explains the control-structures in PHP.
- Functions deals with grouping the code into functions.
- Links has links to more information about PHP.
chandra:
with thanks
16 June 2005, 12:48 pmCirro:
Thanks for this. Very helpful as I try to figure out this language.
30 March 2006, 11:34 pmMichael:
Thanks a lot for the PHP tutorial, after realizing that ASP is mostly MS-centric, I found I need to learn PHP now!
19 April 2006, 2:44 amElizabeth Pedersen:
Martin, far younger than my own two Half Dans, I commend you on your excellent tutorial.
I help administer a board recently relocating from an HTML coding to a PHP, having volunteered to help the site creator with image details. You give me hope my old learnings of string theory, HTML, and C, so on, will become very useful to reorganize my way of doing things.
Til lykke!
4 June 2006, 2:04 amDavid A. Guzman:
Hi,
I’m total beginner in PHP language, and I’m designing a site for a client of mine. There are certain pages I would like to use PHP on, and one of them is a new account forms page.
See, when the user enters his/her information in these fields, I would like the info to be stored somewhere, so my client can access the new customer account info, and I don’t know how do that, I can use the mailto attribute, but I don’t think it’s secure enough, and it’s tedious to cut-n-paste the info into a database. Can someone can help me out with this!?
Also, the other page is a log-in page, and I want the customer to have access to his/her account to track the product or services down or what he/she purchased, and I would totally appreciate someone’s help on these two requests.
Free-lance designer,
29 June 2006, 9:24 pmDavid A. Guzman
[email protected]
Rossen Alexandrov Alexandrov:
Please, send me some tutorials and help for PHP Programming.
17 August 2006, 4:20 pmSourabh:
Hello, I want you to write me the step by step process to run the WAMP server on my computer.I am using Windows XP.
I am not finding the file config.inc.php, in phpmyadmin.
How can i get it and where to change the password?
I have set a new password for SQL but, as i can’t place the password in config.inc.php, SQL server is not getting connected to php.
Please help with detail step.
Regards,
2 September 2006, 3:11 pmSourabh.
Jace Nattie:
Keep up the great work!
5 December 2006, 9:20 amforumgids:
Php is great because of it’s server side loading and not being generated by browser, which is very secure and compatible. I suggest to people who realy want to try php and build something large or complicated to use phpcake or php on rails, so you don’t need to know alot about php-programming and php-structure.
23 December 2006, 10:15 pmmarieraman:
hi
10 March 2007, 7:01 amAlice:
I always find it amusing, how people come swooping in with “I want you to help me do this…” requests/demands in response to tutorials.
16 March 2007, 11:03 pmMario:
Thank you, Martin. Excellent!! Nothing more to say. Keep going forward!
7 May 2007, 6:20 amCooper:
@Alice: Yeah it is kind of pathetic… seems lots of people expect everything handed to them on a silver platter… those people never get far anyway :) It’s the people like us who work hard that get there ;)
27 June 2007, 2:37 amBubbila:
Sweet tutorials, just what I have been looking for! Well Pleased…
11 February 2008, 11:17 pm